Skip to content
Advertisement

Getting error while configuring Swagger-ui with spring reactive

While integrating swagger-ui with a reactive spring project generated using JHipster 7.1.0 for Java 11. I added the below dependencies.

The application has below dependencies of swagger

POM dependencies

JavaScript

Apart from that we added a configuration SwaggerConfig.java

JavaScript
JavaScript

Please share your feedback or inputs if you have faced similar issues.

Advertisement

Answer

When you have both Spring MVC and Webflux are present, Spring Boot will configure your application to use Spring MVC only. (see : https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.spring-application.web-environment)

You need to ensure that the Spring MVC dependency is not present in your project.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement