question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to include Webflux and RouterFunctions

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
RandomChapcommented, Mar 27, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found