-
Notifications
You must be signed in to change notification settings - Fork 38.1k
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
Add reflection hints for Web controllers #28518
Comments
For the annotations themselves and loading For the annotations, I was tempted to add an import on |
Considering that |
I managed to make |
This issue will be focused on reflection hints for controllers and reflection-based serialization of parameters annotated |
For Spring MVC and RestTemplate. See spring-projectsgh-28518
Add support for processing implemented interfaces and remove Reflective from runtime hints. See spring-projectsgh-28518
Support reflection-based serialization of parameters annotated with @RequestBody and return values annotated with @responsebody. It leverages a new BindingReflectionHintsRegistrar class that is designed to register transitively the types usually needed for binding and reflection-based serialization on fields, constructors and properties Generics are taken in account as well. Closes spring-projectsgh-28518
The core framework invokes
@RequestMapping
-annotated methods (@GetMapping
, etc) using reflection. To run in a native image, we need hints for those. We may also want to infer that return types are going to be serialized, or that input times are going to be mapped from the request.All this can go away if we generate an optimized code for the router but let's go the hints route for now.
The text was updated successfully, but these errors were encountered: