@Configuration
@ConditionalOnProperty(name="springdoc.swagger-ui.enabled",
matchIfMissing=true)
@ConditionalOnBean(value=org.springdoc.core.SpringDocConfiguration.class)
public class SwaggerConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| Constructor and Description |
|---|
SwaggerConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
SwaggerIndexTransformer |
indexPageTransformer(SwaggerUiOAuthProperties swaggerUiOAuthProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
SwaggerWelcome |
swaggerWelcome(SwaggerUiConfigProperties swaggerUiConfig,
SpringDocConfigProperties springDocConfigProperties) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigureraddResourceHandlers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter@Bean
@ConditionalOnProperty(name="springdoc.swagger-ui.enabled",
matchIfMissing=true)
public SwaggerWelcome swaggerWelcome(SwaggerUiConfigProperties swaggerUiConfig,
SpringDocConfigProperties springDocConfigProperties)
@Bean
@ConditionalOnProperty(name="springdoc.swagger-ui.enabled",
matchIfMissing=true)
public SwaggerIndexTransformer indexPageTransformer(SwaggerUiOAuthProperties swaggerUiOAuthProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Copyright © 2020. All rights reserved.