Spring MVC 3 Validation - Unable to find a default provider

Viewed 40549

I get an error when trying to set up Spring MVC validation.

javax.validation.ValidationException: Unable to find a default provider

I read in the documents that the default provider they use is the hibernate-validator. Do I need to include this library to get validation to work? Is it okay to include this library even though i'm not using hibernate for my project?

3 Answers

Yes, you should include Hibernate Validator library in order to use it. It doesn't depend on Hibernate itself.

Related