Which java validation library should I use?

I’m kind of stuck in this decision. My project already uses Spring and Spring Blazeds integration, but I don’t think there will be any real web interface (HTML). I have limited experience with Spring MVC and Spring validators, which are fine, but I read comments from people suggesting not to use Spring validators outside Spring MVC. What inspection structure would you recommend based on personal experience?

+5
source share
2 answers

"... but I read comments from people suggesting not to use Spring validators outside Spring MVC ..."

I would like to see these quotes. I used the Spring DataBinding APIs outside of Spring MVC and this is awesome. I would say that criticism is unfounded.

Apache Commons Validator is an alternative, but I still recommend Spring DataBinder. Especially if you are already using Spring. The advantage of switching to something else is more than offset by the cost of another addiction.

+10
source

You can try the Hibernate Validator , which is actually the reference implementation for JSR 303: Bean Validation. BTW, it is still in beta.

+2
source

All Articles