How to include Webflux and RouterFunctions
See original GitHub issueI made it work with @EnableSwagger2WebFlux But it doesn’t show any operations. When I define
return new Docket(DocumentationType.SWAGGER_2).select()
.apis(RequestHandlerSelectors.any())
.build().apiInfo(apiEndPointsInfo());
the read-operation-handler and web-flux-links-handler are shown at least.
I am not using @path annotations but public RouterFunction monoRouterFunction
which defines routes like .andRoute(GET(“/any-route”),anyRouterHandler::test)
I added @ApiOperation to this anyRouterHandler.test function. I tried @Api anotions at this handler or the RoutingConfiguration but all to no avail.
What am I missing?
And i have kotlin models and repositories. But I didn’t expect those to show up anyways 😃
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Introduction to the Functional Web Framework in Spring 5
Spring WebFlux is a new functional web framework built using reactive principles. ... here we'll use HandlerFunction and RouterFunctions.
Read more >RouterFunction · Spring WebFlux By Example - Hantsy Bai
Utilize with the new RouterFunction , you can handle your web requests in a series of fluent APIs instead of writing a @RestController...
Read more >Using Functional Web Framework in Spring WebFlux ... - amitph
In this tutorial, we wan to focus more on Router Functions in a Reactive REST Service. Thus we will have the service return...
Read more >Creating multiple RouterFunctions in Spring WebFlux
In this post we will be looking at defining multiple router functions to different logical domains in Spring WebFlux.
Read more >Router Function in Spring Webflux - Knoldus Blogs
Typically, you don't write router functions yourself, but use a method in the RouterFunctions handler class to create them. RouterFunctions.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey there buddy,
Were you able to get around this problem? I’ve got the same thing going on for me and don’t seem to know how to figure it out - Kotlin RouterFunctions aren’t picked up by @EnableSwagger2WebFlux. Got any advice on how to make it work?
Is this done? https://stackoverflow.com/questions/68266480/springboot-springfox-starter-3-0-0-unable-to-detect-webflux-routerfuntion