validation (1) 썸네일형 리스트형 [Spring Boot] ConstraintValidator Custom 하기 Spring에서 JSR 303 어노테이션을 이용해 데이터 유효성검사를 진행할 수 있습니다. 보통 @NotBlank, @Size, @NotNull ...등 이미 만들어진 검증 어노테이션을 이용할 수 있지만, 자신의 목적에 맞는 검증 어노테이션을 커스텀하여 제작할 수 있습니다. 간단하게 password를 검증하는 어노테이션을 만들어보겠습니다. 1. Password Annotation 생성 import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.. 이전 1 다음