@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) |
org.springdoc.ui.SwaggerWelcome |
swaggerWelcome() |
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 org.springdoc.ui.SwaggerWelcome swaggerWelcome()
@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.