Skip to content

Provide autoconfiguration option for pure RouterFunction apps #22314

Open
@dsyer

Description

@dsyer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: blockedAn issue that's blocked on an external project changetype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions