SwaggerWelcomeCommon could not be found

Solution 1:

It was because of conditional springdoc.use-management-port property in below class. I had set it to true, so the bean is not set. I changed it to false and problem is solved.

SwaggerConfig.class:

@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(
    name = {"springdoc.use-management-port"},
    havingValue = "false",
    matchIfMissing = true
)
SwaggerWelcomeWebMvc swaggerWelcome(SwaggerUiConfigProperties swaggerUiConfig, SpringDocConfigProperties springDocConfigProperties, SwaggerUiConfigParameters swaggerUiConfigParameters, SpringWebProvider springWebProvider) {
    return new SwaggerWelcomeWebMvc(swaggerUiConfig, springDocConfigProperties, swaggerUiConfigParameters, springWebProvider);
}