Simple Java library implementing RFC7807.
-
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
(andio.github.malczuuu.problem4j.jackson
) packages. For integration with Spring Framework check this instruction.
-
Include dependencies.
Add
problem4j
package.dependencies { implementation "io.github.malczuuu.problem4j:problem4j-spring-web:2.0.0" }
-
Create configuration.
import org.springframework.context.annotation.Configuration; import io.github.malczuuu.problem4j.spring.EnableProblem; @Configuration @EnableProblem public class ProblemConfiguration { }