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.

Discovery of endpoints defined using the functional variant of Webflux in Spring Boot 2

See original GitHub issue

I’m trying out the combination of Spring Boot 2.0.4.RELEASE and Springfox 3.0.0-SNAPSHOT. Defining endpoints using a class annotated with @RestController and methods annotated with @GetMapping etc. works just fine. However, I’m unable to get endpoints defined using the new functional variant of Webflux to be picked up by Springfox. E.g.:

@Configuration
public class RoutingConfiguration {

    @Bean
    public RouterFunction<ServerResponse> routerFunction(final IntegerHandler integerHandler) {
        return route(GET("/api/integer").and(accept(APPLICATION_JSON)), integerHandler::getInteger);
    }

}
  1. Is the functional variant of Webflux supported?
  2. If so, how does one get Springfox to discover endpoints defined the functional way?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:29 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
jakobkylbergcommented, Sep 3, 2018

Don’t worry about the lack of documentation, I understand that it takes time to write it.

I tried to create a very simple project with Spring Boot 2.0.4.RELEASE and the latest Springfox 3.0.0-SNAPSHOT. With one endpoint using the functional variant of Webflux. I’ve added the EnableSwagger2Webflux annotation, but I can’t get Springfox to recognize my endpoint. Repo for the test project: https://github.com/jakobkylberg/spring-boot-2-webflux-swagger

If someone can have I quick look it would be very appreciated, maybe I’m missing something obvious.

6reactions
iamrdncommented, Mar 21, 2019

@jakobkylberg thank you for putting together a sample. I’ll take a look at it

Hi @dilipkrish, thanks for the Springfox, But I am still facing same issue with functional endpoints. Is there any patch release for that. Please let me know anyone found any solution for this.?

@jakobkylberg did you find any solution for this…? Please help me to get out of this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web on Reactive Stack - Spring
At the programming-model level, Java 8 enabled Spring WebFlux to offer functional web endpoints alongside annotated controllers.
Read more >
Guide to Spring 5 WebFlux - Baeldung
Spring 5 includes Spring WebFlux, which provides reactive programming support for web applications. · Spring WebFlux internally uses Project ...
Read more >
A functional endpoint in Spring WebFlux - Jstobigdata
We will use the standard start.spring.io to generate the starter Spring-Boot-WebFlux project to implement functional endpoints. The most ...
Read more >
Building a Reactive RESTful Web Service using Spring Boot ...
1. Set up the Spring WebFlux Project · 2. Include Additional Maven Dependencies · 3. Furnish the Configuration · 4. Define a Model...
Read more >
Build Reactive APIs with Spring WebFlux - Okta Developer
Spring Boot 2.0 was a long-awaited release from the good folks at Pivotal. One of its new features is reactive web programming support...
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