• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

properties 파일 매칭하는 클래스에 @Validated를 추가하니 에러가 납니다..

21.01.31 01:51 작성 조회수 518

0

제목처럼 properties의 매칭되는 클래스에 @Validated를 적용하였고 

org.springframework.validation.annotation.Validated;

 import가 떠서 추가해 주었고 run을 해보니

Description:

The Bean Validation API is on the classpath but no implementation could be found

Action:

Add an implementation, such as Hibernate Validator, to the classpath 

이런 에러가 발생하네요...

답변 1

답변을 작성해보세요.

0

<dependency>

    <groupId>org.springframework.boot</groupId>

    <artifactId>spring-boot-starter-validation</artifactId>

</dependency>

이 의존성을 추가한 뒤에 다시 해보시기 바랍니다.