添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Spring

Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.

owgno6 2019. 10. 10. 10:52

JSR 303 사용 시 다음과 같은 예외에 직면할 수 있다.

Caused by: 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.

버젼은 6이상도 있지만 5.2.4. Final이 제일 안정적이다.

다음 디펜던시 (Dependency)를 추가하거나

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

다음과 같은 예외에 직면한다면,

Caused by: java.lang.ClassNotFoundException: javax.el.PropertyNotFoundException

다음을 추가한다.

Error creating bean with name 'org.springframework.validation.beanvalidation. OptionalValidatorFactoryBean#0' (0) 2019.10.10 [전자정부 표준프레임워크] No bean named '****Service' is defined or available 해결방법 (0) 2019.07.16 @RequestBody와 @ResponseBody 개념 (1) 2018.12.03