@Component @EnableConfigurationProperties(value=SwaggerProperties.class) public class SwaggerConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| Constructor and Description |
|---|
SwaggerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
静态资源配置,必须为:/META-INF/resources
|
static com.google.common.base.Predicate<springfox.documentation.RequestHandler> |
basePackage(String basePackage)
Predicate that matches RequestHandler with given base package name for the class of the handler method.
|
springfox.documentation.spring.web.plugins.Docket |
createRestApi() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic static com.google.common.base.Predicate<springfox.documentation.RequestHandler> basePackage(String basePackage)
basePackage - - base package of the classespublic void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerregistry - 注册@Bean public springfox.documentation.spring.web.plugins.Docket createRestApi()
Copyright © 2019. All rights reserved.