File was renamed from springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/java/com/panzhihua/zuul/config/Swagger2Config.java |
| | |
| | | @Configuration |
| | | @EnableSwagger2 |
| | | @Primary |
| | | public class Swagger2Config implements SwaggerResourcesProvider { |
| | | public class SwaggerConfig implements SwaggerResourcesProvider { |
| | | |
| | | //RouteLocator可以根据zuul配置的路由列表获取服务 |
| | | private final RouteLocator routeLocator; |
| | | |
| | | private String[]ids=new String[]{"appletsbackstage","applets","communitybackstage"}; |
| | | |
| | | public Swagger2Config(RouteLocator routeLocator) { |
| | | public SwaggerConfig(RouteLocator routeLocator) { |
| | | this.routeLocator = routeLocator; |
| | | } |
| | | /** |