belgif / rest-problem-java

Java library for RFC 9457 Problems with support for standard problem types of the Belgif REST guide (https://www.belgif.be/specification/rest/api-guide/#error-handling)
https://belgif.github.io/rest-problem-java/
Apache License 2.0
3 stars 0 forks source link

Support bean validation on Spring Boot 2.x #36

Closed jpraet closed 4 months ago

smals-mavh commented 4 months ago

@jpraet seems indeed like a good solution to support both Spring boot 2 and 3. For development this is a bit annoying because IntelliJ doesn't run the tests for SB3 (it only loads the javax version in the session). But with maven it's no problem to run the tests of course. I think the merge with https://github.com/belgif/rest-problem-java/pull/32 will be a bit nasty. Let me know if you'll do it, or if I can do it. (You might want to review the last changes I've made to https://github.com/belgif/rest-problem-java/pull/32)

jpraet commented 4 months ago

@jpraet seems indeed like a good solution to support both Spring boot 2 and 3. For development this is a bit annoying because IntelliJ doesn't run the tests for SB3 (it only loads the javax version in the session). But with maven it's no problem to run the tests of course.

Yes that's annoying. I thought maybe "Unload Maven Module" would do the trick (that it would then resolve the artifact from the local maven repo), but it doesn't seem to be the case.

I think the merge with #32 will be a bit nasty. Let me know if you'll do it, or if I can do it. (You might want to review the last changes I've made to #32)

The merge is done.