Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- java
- 자료구조
- @NotEmpty
- mycp
- 점세개
- @Spring
- decorator
- 쉬운 계단 수
- junit
- 숫자야구
- 자바
- Linux
- 10951
- springboot
- 디자인패턴
- 10844
- 여러인수
- 백준
- createQuery
- 전치행렬 #C
- 데코레이터패턴
- designpattern
- setParameter
- @ModelAttribute
- pscp
- C
- BubbleSorting
- gradle
- Spring
- NamedParameterNotBound
Archives
- Today
- Total
...
[Spring Boot] @NotEmpty 어노테이션이 import 되지 않을 때 본문
@NotEmpty 어노테이션은 javax.validation.constraints 패키지에 존재한다.
스프링 부트 버전에 따라서 이 패키지가 포함되어있을 수도, 아닐 수도 있다.
따라서 @NotEmpty 어노테이션이 import되지 않을 때는
build.gradle dependencies에
implementation 'org.springframework.boot:spring-boot-starter-validation'
을 추가해준다.

'이것저것 > 오류 해결' 카테고리의 다른 글
| [JAVA/Spring] 단위테스트 상 Repository에서 NullPointerException이 발생할 때 (0) | 2022.05.25 |
|---|---|
| [Gradle/Spring]finished with non-zero exit value 1 오류 해결 (0) | 2022.05.04 |
| [JUnit]Named parameter not bound 에러 (0) | 2022.04.17 |
| Spring Test 오류 해결 [FAILURE: Build failed with an exception] (0) | 2022.04.06 |
| JPA /Maven 이용시 Error:java: error: release version 5 not supported 해결 (0) | 2022.03.26 |