Open
Description
Currently WebFluxAutoConfiguration
enables the RouterFunction
programming model, but doesn't give any option to skip the @RequestMapping
approach. With the runtime performance gains that can be made using functional style configuration, it seems like Spring Boot should be able to support WebFlux.fn (and MVC.fn) without also enabling annotation-based controller programming models. There won't be a classpath signal that the user wants only fn endpoints, so it might have to be an Environment
property that switches it on (and switches off WebFluxAutoConfiguration
probably). Maybe it's a change that needs to be driven through from Spring Framework?