Browse Source
Following modularization, a presence check for ValidatorAdapter was needed in the MVC and WebFlux auto-configuratiomn when creating their Validators. Runtime hints to allow this check to work in a native image were not added at the same time, resulting in the class appearing to be absent. This caused message interpolation for constraint violations to fail as newly created Validator was being used which lacked the necessary MessageInterpolator configuration. This commit adds reflection hints for ValidatorAdapter, allowing re-use of the context's main validator as the MVC and WebFlux validators. Fixes gh-48828pull/48875/head
4 changed files with 48 additions and 0 deletions
Loading…
Reference in new issue