-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Custom Constraint Validator not work with native image #29823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The |
It looks like there are 2 issues for that use case:
|
The detailed reason for the AOT level issue in
|
Draft commit I need to test and review a bit more next week before merging it : sdeleuze@gh-29823. |
In a new project generated by Spring Initializr, I created a RestController with custom ConstraintValidator and it works fine in a JVM setup:
However, for the native image it doesn't work with the error message:
In
reflect-config.json
you can see the configuration of ExistsValidator:I found no issues with the
jakarta.validation.constraints.*
annotations.Is it a limitation with native-image to be able to inject a bean into a ConstraintValidator ?
Spring Boot v3.0.1
The text was updated successfully, but these errors were encountered: