Skip to content

v1.5.11 RequestMappingInfoHandlerMapping have multiple instances #1288

Closed
@Sopage

Description

@Sopage

Describe the bug

spring boot version 2.5.5
implementation "org.springdoc:springdoc-openapi-ui:1.5.11"


APPLICATION FAILED TO START


Description:

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]

Action:

Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed

version 1.5.10 no problem

springframework RequestMappingInfoHandlerMapping have multiple instances

To Reproduce

Expected behavior

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions