본문 바로가기

개발 관련 기록과 정리/복사 글

Spring Boot Validation Message 바꾸기

 

유효성 검사에서 메세지를 강제적으로 바꿀수 있다.

 

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