uknowapps

uknowapps.egloos.com

포토로그



maven에 validation-api 설정시 오류 해결 Spring

maven에 validation-api 설정시 아래와 같이 오류가 날 경우


Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is javax.validation.ValidationException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.

아래 설정을 부가적으로 명시하면 해결됨

<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-validator-annotation-processor</artifactId>
  <version>4.1.0.Final</version>
</dependency>

덧글

댓글 입력 영역



애드센스 수평