Package org.springdoc.ui
Class SwaggerConfig
- java.lang.Object
-
- org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
- org.springdoc.ui.SwaggerConfig
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration @ConditionalOnProperty(name="springdoc.swagger-ui.enabled", matchIfMissing=true) @ConditionalOnBean(org.springdoc.core.OpenAPIBuilder.class) public class SwaggerConfig extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
-
Constructor Summary
Constructors Constructor Description SwaggerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
org.springdoc.ui.SwaggerWelcome
swaggerWelcome()
-
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Method Detail
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
addResourceHandlers
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
swaggerWelcome
@Bean @ConditionalOnProperty(name="springdoc.swagger-ui.enabled", matchIfMissing=true) public org.springdoc.ui.SwaggerWelcome swaggerWelcome()
-
-