I am not getting message error while executing @Size
annotation in spring boot bean class
below are my files pom.xml
Spring Boot 2.3.2 has issues with validation messages, or behaviour changed. Try to downgrade to Spring Boot 2.2.9
Yes, There is issue with Spring 2.3.2 version that Size annotation will not provide proper restful response. After downgrading it to version 2.2.9 it worked as expected. It is returning proper Json with custom error message.