Notice
Recent Posts
Recent Comments
Link
나의 GitHub Contribution 그래프
Loading data ...
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

Code in Life

[springboot] @Valid 설정시 유효성 검사가 동작하지 않는 문제 본문

에러 및 이슈

[springboot] @Valid 설정시 유효성 검사가 동작하지 않는 문제

퓨끼 2021. 1. 28. 20:28
<dependency>
	<groupId>javax.validation</groupId>
	<artifactId>validation-api</artifactId>
</dependency>

유효성 검증을 하기위해 javax.validation:validation-api 를 사용했으나 작동을 하지 않았다.

스택오버플로우에서 찾아본 결과 Springboot 2.2이상의 버전부터는 아래 dependency로 변경되었다.

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

 

Comments