Commit 5e2b9ef2 by 阳浪

SwaggerConfig

parent 0c4a270e
...@@ -25,7 +25,7 @@ import static springfox.documentation.builders.PathSelectors.regex; ...@@ -25,7 +25,7 @@ import static springfox.documentation.builders.PathSelectors.regex;
* @date 2018年2月28日 * @date 2018年2月28日
*/ */
@Configuration @Configuration
//@EnableSwagger2 @EnableSwagger2
public class SwaggerConfig extends WebMvcConfigurerAdapter { public class SwaggerConfig extends WebMvcConfigurerAdapter {
@Value("${swagger.enabled}") @Value("${swagger.enabled}")
...@@ -40,10 +40,10 @@ public class SwaggerConfig extends WebMvcConfigurerAdapter { ...@@ -40,10 +40,10 @@ public class SwaggerConfig extends WebMvcConfigurerAdapter {
*/ */
@Override @Override
public void addResourceHandlers(ResourceHandlerRegistry registry) { public void addResourceHandlers(ResourceHandlerRegistry registry) {
//registry.addResourceHandler("/webjars/**") registry.addResourceHandler("/webjars/**")
// .addResourceLocations("classpath:/META-INF/resources/webjars/"); .addResourceLocations("classpath:/META-INF/resources/webjars/");
//registry.addResourceHandler("swagger-ui.html") registry.addResourceHandler("swagger-ui.html")
// .addResourceLocations("classpath:/META-INF/resources/"); .addResourceLocations("classpath:/META-INF/resources/");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment