유효성 검사에서 메세지를 강제적으로 바꿀수 있다.
https://stackoverflow.com/questions/6048556/can-you-change-an-annotation-message-at-run-time
Can you change an annotation message at run time?
I'm trying to include a dynamic message in my annotation that changes the main body of the text based on the values that are found in the other variables that are passed to it. I set a default mes...
stackoverflow.com
'개발 관련 기록과 정리 > 복사 글' 카테고리의 다른 글
Maven multi module에서 yml(yaml) 오버라이딩 설정 (spring boot 2.x) (0) | 2019.09.30 |
---|---|
Spring에서 @Valid와 @Validated의 차이점 (0) | 2019.05.27 |