JSR-303 bean validation with Spring does not kick in
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 dirt simple 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