
This commit applies changes similar to what's been done in gh-9068, for MVC and WebFlux configurations. This is now possible thanks to the changes done in Spring Framework in https://github.com/spring-projects/spring-framework/pull/22596 Fixes gh-16427