Skip to content

1.5.10 update to 1.5.11, cause error #1293

Closed
@NickZhang1024

Description

@NickZhang1024

version 1.5.10 is fine, update to 1.5.11, cause error:


APPLICATION FAILED TO START


Description:

Parameter 3 of method swaggerWelcome in org.springdoc.webmvc.ui.SwaggerConfig required a single bean, but 2 were found:
- requestMappingHandlerMapping: defined by method 'requestMappingHandlerMapping' in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]
- oauth2EndpointHandlerMapping: defined by method 'oauth2EndpointHandlerMapping' in class path resource [org/springframework/security/oauth2/config/annotation/web/configuration/AuthorizationServerEndpointsConfiguration.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions