SpringForAll / spring-boot-starter-swagger

自制spring boot starter for swagger 2.x,来试试吧,很好用哦~
Apache License 2.0
2.13k stars 523 forks source link

关于zuul整合后不能生成zuul自身的接口文档 #161

Open songType opened 5 years ago

songType commented 5 years ago

请问相对应的配置加上去了,但是zuul不能生成接口文档,应该怎么解决?

class DocumentationConfig implements SwaggerResourcesProvider {
        @Override
        public List<SwaggerResource> get() {
            List resources = new ArrayList<>();
            resources.add(swaggerResource("auth-center-server", "/api/auth-center-server/v2/api-docs", "1.0"));
            resources.add(swaggerResource("user-server", "/api/user-server/v2/api-docs", "1.0"));
//            resources.add(swaggerResource("gateway-server", "/api/gateway-server/v2/api-docs", "1.0"));
            resources.add(swaggerResource("account-server", "/api/account-server/v2/api-docs", "1.0"));
            return resources;
        }