-
-
Notifications
You must be signed in to change notification settings - Fork 534
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
I am trying to switch from Springfox to Spring Doc. I've followed https://springdoc.org/#migrating-from-springfox, but my service now fails at startup with
Parameter 3 of method swaggerWelcome in org.springdoc.webmvc.ui.SwaggerConfig required a single bean, but 3 were found:
- requestMappingHandlerMapping: defined by method 'requestMappingHandlerMapping' in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]
- webEndpointServletHandlerMapping: defined by method 'webEndpointServletHandlerMapping' in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/WebMvcEndpointManagementContextConfiguration.class]
- controllerEndpointHandlerMapping: defined by method 'controllerEndpointHandlerMapping' in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/WebMvcEndpointManagementContextConfiguration.class]
I'm using Spring Boot 2.5.5, Spring Doc OpenAPI 1.5.11. I've created two GroupedOpenApi and one OpenAPI beans. Otherwise nothing fancy so far. Using Gradle 7.2 for the build. Java 11.
If it's a known issue, happy to hear the resolution. If not, I'll create a simple project and put it to my github account. I can't share the project itself as is.
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists