javax validation : https://javaee.github.io/javaee-spec/javadocs/javax/validation/constraints/package-summary.html?utm_source=chatgpt.com
NotBlank
The annotated element must not be null and must contain at least one non-whitespace character. Accepts CharSequence.
NotNull
The annotated element must not be null. Accepts any type.
NotEmpty
The annotated element must not be null nor empty. Supported types are:
- CharSequence (length of character sequence is evaluated)
- Collection (collection size is evaluated)
- Map (map size is evaluated)
- Array (array length is evaluated)
https://javaee.github.io/javaee-spec/javadocs/javax/validation/constraints/NotBlank.html
https://javaee.github.io/javaee-spec/javadocs/javax/validation/constraints/NotEmpty.html
https://javaee.github.io/javaee-spec/javadocs/javax/validation/constraints/NotNull.html
'【 개발 이야기 】' 카테고리의 다른 글
@ModelAttribute와 인터페이스 (0) | 2025.03.26 |
---|---|
Throwable & Exception (0) | 2025.03.26 |
직렬화 (3) | 2025.03.21 |
[Springboot] 잭슨이란? Json Parser!! (0) | 2025.03.21 |
인터페이스는 왜 필요한걸까요 그건 바로... (0) | 2025.03.14 |