/problem4j

Simple Java package of libraries implementing RFC7807

Primary LanguageJavaMIT LicenseMIT

Problem details for Java

Build Status

Simple Java library implementing RFC7807.

How to setup

  1. Include dependencies.

    Add JitPack dependency repository.

    repositories {
        maven { url "https://jitpack.io/" }
    }

    Add problem4j package.

    dependencies {
        implementation "io.github.malczuuu.problem4j:problem4j-core:2.0.0"
    
        // Optionally
        implementation "io.github.malczuuu.problem4j:problem4j-jackson:2.0.0"
    }

    Feel free to use any class from io.github.malczuuu.problem4j.core (and io.github.malczuuu.problem4j.jackson) packages. For integration with Spring Framework check this instruction.

How to setup with Spring

  1. Include dependencies.

    Add problem4j package.

    dependencies {
        implementation "io.github.malczuuu.problem4j:problem4j-spring-web:2.0.0"
    }
  2. Create configuration.

    import org.springframework.context.annotation.Configuration;
    import io.github.malczuuu.problem4j.spring.EnableProblem;
    
    @Configuration
    @EnableProblem
    public class ProblemConfiguration {
    }