@Configuration
@EnableSwagger2
@ConditionalOnProperty(prefix="swagger.ui",
value="enable",
matchIfMissing=true)
@EnableConfigurationProperties(value=SwaggerProperties.class)
public class SwaggerAutoConfiguration
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
log |
| 构造器和说明 |
|---|
SwaggerAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
springfox.documentation.spring.web.plugins.Docket |
api() |
void |
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) |
protected com.google.common.base.Predicate<String> |
excludedPathSelector() |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidator@Bean public springfox.documentation.spring.web.plugins.Docket api()
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureContentNegotiation 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterprotected com.google.common.base.Predicate<String> excludedPathSelector()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.