You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
The text was updated successfully, but these errors were encountered:
frankruegamer
changed the title
springdoc-openapi-data-rest with Webflux
Spring Webflux support for springdoc-openapi-data-rest
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.)
The text was updated successfully, but these errors were encountered: