mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
0785256b2f
This commit makes sure to initialize any HandlerMapping defined in the context when searching for resource handlers. Previously, the detection algorithm was looking up for `SimpleUrlHandlerMapping` while the declared target type in WebMvcConfigurationSupport is HandlerMapping. If the application uses lazy initialization, the lookup algorithm would not force that bean to be initialized. Closes gh-25488