발생 상황
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>
참고 글
https://appsnuri.tistory.com/116
maven에 validation-api 설정시 오류 해결
maven에 validation-api 설정시 아래와 같이 오류가 날 경우 Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is javax.validation.Valida
appsnuri.tistory.com
'오류 > Spring' 카테고리의 다른 글
java.lang.ClassNotFoundException: javax.xml.bind.JAXBException (0) | 2024.03.12 |
---|---|
Servlet.init() for servlet appServlet threw exception (0) | 2024.03.12 |
[Pom] pom.xml에서 오류나는 jar (0) | 2024.03.11 |
[Maven] Missing artifact (0) | 2024.03.11 |
"status":999,"error":"None","message":"No message available (0) | 2024.03.11 |