Skip to content

Spring Webflux support for springdoc-openapi-data-rest #477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
frankruegamer opened this issue Mar 6, 2020 · 0 comments
Closed

Spring Webflux support for springdoc-openapi-data-rest #477

frankruegamer opened this issue Mar 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@frankruegamer
Copy link

frankruegamer commented Mar 6, 2020

springdoc-openapi-data-rest does not work in combination with Spring Webflux.
It is possible to include the dependencies alongside each other, but as soon as you add @EnableWebFlux the application crashes on bean creation with the following error:

The bean 'requestMappingHandlerAdapter', defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class], could not be registered. A bean with that name has already been defined in org.springframework.web.reactive.config.DelegatingWebFluxConfiguration and overriding is disabled.

This is because springdoc-openapi-data-rest includes the dependency spring-boot-starter-data-rest which triggers its auto configuration.

I wanted to add this dependency because of Pageable support.

I currently found no feasible workaround (excluding auto configuration classes, setting spring.main.web-application-type to reactive, etc.)

@frankruegamer frankruegamer changed the title springdoc-openapi-data-rest with Webflux Spring Webflux support for springdoc-openapi-data-rest Mar 6, 2020
@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants