生产中关闭swagger的几种方式
一.可以通过profile注解来处理。 Swagger的congif类上声明@Profile({"dev", "test"}),发布到生产上使用product的profile时, swagger是无效的。二.@Configuration @EnableSwagger2 @EnableWebMvc @ComponentScan("com.XXX.controller") public c...
原创
2018-03-18 21:56:29 ·
20271 阅读 ·
0 评论