[hibernate-dev] JSR-303 bean validation with Spring does not kick in

Abhijit Sarkar abhijit.sarcar at gmail.com
Sat Feb 22 22:14:57 EST 2014


Hi,
I've configured a JSR-303 custom validator following what's given in the
docs (
http://docs.spring.io/spring/docs/4.0.x/spring-framework-reference/html/validation.html),
complete with LocalValidatorFactoryBean and Hibernate validator on the
classpath. However, my validator just refuses to kick in. I've put up a
test project here (
https://github.com/abhijitsarkar/java/tree/master/spring-jsr-303), along
with a failing unit test. Should you decide to take a look, just clone it
and run
gradlew clean test
from the root directory.
I'm using Spring framework 4.0.2.RELEASE and Hibernate validator
5.0.3.Final.

Regards,
Abhijit


More information about the hibernate-dev mailing list