You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. Spring Boot 2.6 switched to Hibernate Validator 7 and downgrading it to the version used by Spring Boot 2.5.x didn't fix the problem so we'll have to investigate.
Thanks for the sample, @runningonfumes. The change in behaviour is an unanticipated side-effect of #17530. You can restore the previous behaviour by defining your own validator:
To make this easier, we could perhaps introduce a configuration property that allows you to opt out of using the MessageSource for validation message interpolation. Flagging for team attention so that we can consider our options.
Configuring the following messageSource breaks hibernate validation messages
attached is a simple test case where the defaultMessage is the key, not the expected translation.
If that test is run against spring boot 2.5.7 it is fine, against 2.6.1 it is broken
demo.zip
.
The text was updated successfully, but these errors were encountered: