diff --git a/laboratory/src/main/java/com/youlai/laboratory/base/config/SwaggerConfiguration.java b/laboratory/src/main/java/com/youlai/laboratory/base/config/SwaggerConfiguration.java index 207a6ddf8..ced82f23a 100644 --- a/laboratory/src/main/java/com/youlai/laboratory/base/config/SwaggerConfiguration.java +++ b/laboratory/src/main/java/com/youlai/laboratory/base/config/SwaggerConfiguration.java @@ -56,7 +56,7 @@ public class SwaggerConfiguration { SecurityContext securityContext = new SecurityContext(Lists.newArrayList(securityReference), PathSelectors.ant("/**")); //schemas List securitySchemes = Lists.newArrayList(oAuth); - //securyContext + //securityContext List securityContexts = Lists.newArrayList(securityContext); return new Docket(DocumentationType.SWAGGER_2) .select() @@ -73,8 +73,8 @@ public class SwaggerConfiguration { .title("实验室") .description("
提供学习canal,elasticsearch,jvm,mybatis,mysql,netty,rabbitmq,redis,seata,sentinel,spring的环境
") .termsOfServiceUrl("https://www.youlai.tech") - .contact(new Contact("有来技术团队", "https://gitee.com/youlaiorg", "youlaitech@163.com")) - .license("Open Source") + .contact(new Contact("有来开源组织", "https://gitee.com/youlaiorg", "youlaitech@163.com")) + .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0") .version("1.0.0") .build(); diff --git a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/config/SwaggerConfiguration.java b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/config/SwaggerConfiguration.java index c972b97ff..8a2e29c4b 100644 --- a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/config/SwaggerConfiguration.java +++ b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/config/SwaggerConfiguration.java @@ -1,6 +1,7 @@ package com.youlai.mall.oms.config; import com.google.common.collect.Lists; +import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -52,11 +53,11 @@ public class SwaggerConfiguration { SecurityContext securityContext=new SecurityContext(Lists.newArrayList(securityReference),PathSelectors.ant("/**")); //schemas List securitySchemes=Lists.newArrayList(oAuth); - //securyContext + //securityContext List securityContexts=Lists.newArrayList(securityContext); return new Docket(DocumentationType.SWAGGER_2) .select() - .apis(RequestHandlerSelectors.basePackage("com.youlai.mall.oms.controller")) + .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) .paths(PathSelectors.any()) .build() .securityContexts(securityContexts) @@ -69,8 +70,8 @@ public class SwaggerConfiguration { .title("订单中心") .description("
订单提交、秒杀接口
") .termsOfServiceUrl("https://www.youlai.tech") - .contact(new Contact("有来技术团队", "https://gitee.com/youlaiorg", "youlaitech@163.com")) - .license("Open Source") + .contact(new Contact("有来开源组织", "https://gitee.com/youlaiorg", "youlaitech@163.com")) + .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0") .version("1.0.0") .build(); diff --git a/mall-pms/pms-boot/src/main/java/com/youlai/mall/pms/config/SwaggerConfiguration.java b/mall-pms/pms-boot/src/main/java/com/youlai/mall/pms/config/SwaggerConfiguration.java index a6f78fafa..99a44b948 100644 --- a/mall-pms/pms-boot/src/main/java/com/youlai/mall/pms/config/SwaggerConfiguration.java +++ b/mall-pms/pms-boot/src/main/java/com/youlai/mall/pms/config/SwaggerConfiguration.java @@ -1,6 +1,7 @@ package com.youlai.mall.pms.config; import com.google.common.collect.Lists; +import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -53,11 +54,11 @@ public class SwaggerConfiguration { SecurityContext securityContext=new SecurityContext(Lists.newArrayList(securityReference),PathSelectors.ant("/**")); //schemas List securitySchemes=Lists.newArrayList(oAuth); - //securyContext + //securityContext List securityContexts=Lists.newArrayList(securityContext); return new Docket(DocumentationType.SWAGGER_2) .select() - .apis(RequestHandlerSelectors.basePackage("com.youlai.mall.pms.controller")) + .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) .paths(PathSelectors.any()) .build() .securityContexts(securityContexts) @@ -70,8 +71,8 @@ public class SwaggerConfiguration { .title("商品中心") .description("
商品管理、库存、分类、品牌、规格、参数等接口
") .termsOfServiceUrl("https://www.youlai.tech") - .contact(new Contact("有来技术团队", "https://gitee.com/youlaiorg", "youlaitech@163.com")) - .license("Open Source") + .contact(new Contact("有来开源组织", "https://gitee.com/youlaiorg", "youlaitech@163.com")) + .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0") .version("1.0.0") .build(); diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/config/SwaggerConfiguration.java b/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/config/SwaggerConfiguration.java index 724ac84d2..94003356b 100644 --- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/config/SwaggerConfiguration.java +++ b/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/config/SwaggerConfiguration.java @@ -1,6 +1,7 @@ package com.youlai.mall.sms.config; import com.google.common.collect.Lists; +import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -53,11 +54,11 @@ public class SwaggerConfiguration { SecurityContext securityContext=new SecurityContext(Lists.newArrayList(securityReference),PathSelectors.ant("/**")); //schemas List securitySchemes=Lists.newArrayList(oAuth); - //securyContext + //securityContext List securityContexts=Lists.newArrayList(securityContext); return new Docket(DocumentationType.SWAGGER_2) .select() - .apis(RequestHandlerSelectors.basePackage("com.youlai.mall.sms.controller")) + .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) .paths(PathSelectors.any()) .build() .securityContexts(securityContexts) @@ -69,8 +70,8 @@ public class SwaggerConfiguration { return new ApiInfoBuilder().title("营销中心") .description("
首页广告接口
") .termsOfServiceUrl("https://www.youlai.tech") - .contact(new Contact("有来技术团队", "https://gitee.com/youlaiorg", "youlaitech@163.com")) - .license("Open Source") + .contact(new Contact("有来开源组织", "https://gitee.com/youlaiorg", "youlaitech@163.com")) + .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0") .version("1.0.0") .build(); diff --git a/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/config/SwaggerConfiguration.java b/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/config/SwaggerConfiguration.java index 740684ce7..ea684c384 100644 --- a/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/config/SwaggerConfiguration.java +++ b/mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/config/SwaggerConfiguration.java @@ -1,6 +1,7 @@ package com.youlai.mall.ums.config; import com.google.common.collect.Lists; +import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -52,11 +53,11 @@ public class SwaggerConfiguration { SecurityContext securityContext=new SecurityContext(Lists.newArrayList(securityReference),PathSelectors.ant("/**")); //schemas List securitySchemes=Lists.newArrayList(oAuth); - //securyContext + //securityContext List securityContexts=Lists.newArrayList(securityContext); return new Docket(DocumentationType.SWAGGER_2) .select() - .apis(RequestHandlerSelectors.basePackage("com.youlai.mall.ums.controller")) + .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) .paths(PathSelectors.any()) .build() .securityContexts(securityContexts) @@ -69,8 +70,8 @@ public class SwaggerConfiguration { .title("会员中心") .description("
会员管理、地址接口
") .termsOfServiceUrl("https://www.youlai.tech") - .contact(new Contact("有来技术团队", "https://gitee.com/youlaiorg", "youlaitech@163.com")) - .license("Open Source") + .contact(new Contact("有来开源组织", "https://gitee.com/youlaiorg", "youlaitech@163.com")) + .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0") .version("1.0.0") .build(); diff --git a/youlai-auth/src/main/java/com/youlai/auth/config/SwaggerConfiguration.java b/youlai-auth/src/main/java/com/youlai/auth/config/SwaggerConfiguration.java index 162c77445..c730177e5 100644 --- a/youlai-auth/src/main/java/com/youlai/auth/config/SwaggerConfiguration.java +++ b/youlai-auth/src/main/java/com/youlai/auth/config/SwaggerConfiguration.java @@ -51,7 +51,7 @@ public class SwaggerConfiguration { SecurityContext securityContext = new SecurityContext(Lists.newArrayList(securityReference), PathSelectors.ant("/**")); //schemas List securitySchemes = Lists.newArrayList(oAuth); - //securyContext + //securityContext List securityContexts = Lists.newArrayList(securityContext); return new Docket(DocumentationType.SWAGGER_2) .select() @@ -67,8 +67,8 @@ public class SwaggerConfiguration { return new ApiInfoBuilder().title("OAuth2认证中心") .description("
OAuth2认证、注销、获取验签公钥接口
") .termsOfServiceUrl("https://www.youlai.tech") - .contact(new Contact("有来技术团队", "https://gitee.com/youlaiorg", "youlaitech@163.com")) - .license("Open Source") + .contact(new Contact("有来开源组织", "https://gitee.com/youlaiorg", "youlaitech@163.com")) + .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0") .version("2.0.0") .build(); diff --git a/youlai-system/system-boot/src/main/java/com/youlai/system/config/SwaggerConfiguration.java b/youlai-system/system-boot/src/main/java/com/youlai/system/config/SwaggerConfiguration.java index 9a86b6d2f..33d6bd13d 100644 --- a/youlai-system/system-boot/src/main/java/com/youlai/system/config/SwaggerConfiguration.java +++ b/youlai-system/system-boot/src/main/java/com/youlai/system/config/SwaggerConfiguration.java @@ -57,7 +57,7 @@ public class SwaggerConfiguration { SecurityContext securityContext = new SecurityContext(Lists.newArrayList(securityReference), PathSelectors.ant("/**")); //schemas List securitySchemes = Lists.newArrayList(oAuth); - //securyContext + //securityContext List securityContexts = Lists.newArrayList(securityContext); return new Docket(DocumentationType.SWAGGER_2) .select() @@ -74,8 +74,8 @@ public class SwaggerConfiguration { .title("系统管理") .description("
用户、角色、部门、菜单、权限、字典、客户端接口
") .termsOfServiceUrl("https://www.youlai.tech") - .contact(new Contact("有来技术团队", "https://gitee.com/youlaiorg", "youlaitech@163.com")) - .license("Open Source") + .contact(new Contact("有来开源组织", "https://gitee.com/youlaiorg", "youlaitech@163.com")) + .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0") .version("1.0.0") .build();