@Configuration
@EnableSwagger2
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) |
void |
addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) |
springfox.documentation.spring.web.plugins.Docket |
adminApi() |
springfox.documentation.spring.web.plugins.Docket |
tokenApi() |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
addViewControllers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigureraddViewControllers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic 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 public springfox.documentation.spring.web.plugins.Docket tokenApi()
@Bean public springfox.documentation.spring.web.plugins.Docket adminApi()
Copyright © 2018. All rights reserved.