Skip to content

Cannot override OpenApiResource autoconfiguration #608

Closed
@jryan128

Description

@jryan128

I see that SpringDocWebFluxConfiguration has @ConditionalOnMissingBean and @ConditionalOnProperty set, but when I set the property to false, or provide a bean spring still complains:

@RestController("openApiResource")
public class MyOpenApiResource {    
}

The bean 'openApiResource', defined in class path resource [org/springdoc/webflux/core/SpringDocWebFluxConfiguration.class], could not be registered. A bean with that name has already been defined in file [/Users//Desktop//services//target/classes/com////controllers/MyOpenApiResource.class] and overriding is disabled.

Using Spring Boot 2.2.6
Spring Doc 1.3.4

Thank you!

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