Springdoc-openapi: Support Spring Boot WebFlux Netty

Created on 27 Jul 2019  路  2Comments  路  Source: springdoc/springdoc-openapi

I think one of the biggest features missing from the SpringFox project is the official release of WebFlux Netty support.

It would be great if springdoc support webflux netty. I can see the demo 'springdoc-openapi-test-app3' attempts to do this but 'spring-boot-starter-web' should be removed so that it's a pure webflux project. If you do this you get the error

Description:

Field requestMappingHandlerMapping in org.springdoc.api.OpenApiResource required a bean of type 'org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)

Thanks

enhancement

Most helpful comment

For the moment, WebFlux is not yet supported.
It will be available in future releases.

All 2 comments

For the moment, WebFlux is not yet supported.
It will be available in future releases.

springdoc-openapi, supports now spring-weblfux with Netty, using Annotated Controllers.
For this, just add the following dependency:

   <dependency>
      <groupId>org.springdoc</groupId>
      <artifactId>springdoc-openapi-webflux-ui</artifactId>
      <version>1.1.14</version>
   </dependency>

A demo application, is also available:

spring-weblfux with Functional Endpoints, will be available in a future release.

Was this page helpful?
0 / 5 - 0 ratings