docs(SwaggerConfiguration.java): 注释修改

This commit is contained in:
haoxr 2022-12-21 23:42:38 +08:00
parent 6dfb825678
commit c1a9c0c5cb
7 changed files with 29 additions and 25 deletions

View File

@ -56,7 +56,7 @@ public class SwaggerConfiguration {
SecurityContext securityContext = new SecurityContext(Lists.newArrayList(securityReference), PathSelectors.ant("/**"));
//schemas
List<SecurityScheme> securitySchemes = Lists.newArrayList(oAuth);
//securyContext
//securityContext
List<SecurityContext> securityContexts = Lists.newArrayList(securityContext);
return new Docket(DocumentationType.SWAGGER_2)
.select()
@ -73,8 +73,8 @@ public class SwaggerConfiguration {
.title("实验室")
.description("<div style='font-size:14px;color:red;'>提供学习canal,elasticsearch,jvm,mybatis,mysql,netty,rabbitmq,redis,seata,sentinel,spring的环境</div>")
.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();

View File

@ -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<SecurityScheme> securitySchemes=Lists.newArrayList(oAuth);
//securyContext
//securityContext
List<SecurityContext> 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("<div style='font-size:14px;color:red;'>订单提交、秒杀接口</div>")
.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();

View File

@ -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<SecurityScheme> securitySchemes=Lists.newArrayList(oAuth);
//securyContext
//securityContext
List<SecurityContext> 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("<div style='font-size:14px;color:red;'>商品管理、库存、分类、品牌、规格、参数等接口</div>")
.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();

View File

@ -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<SecurityScheme> securitySchemes=Lists.newArrayList(oAuth);
//securyContext
//securityContext
List<SecurityContext> 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("<div style='font-size:14px;color:red;'>首页广告接口</div>")
.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();

View File

@ -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<SecurityScheme> securitySchemes=Lists.newArrayList(oAuth);
//securyContext
//securityContext
List<SecurityContext> 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("<div style='font-size:14px;color:red;'>会员管理、地址接口</div>")
.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();

View File

@ -51,7 +51,7 @@ public class SwaggerConfiguration {
SecurityContext securityContext = new SecurityContext(Lists.newArrayList(securityReference), PathSelectors.ant("/**"));
//schemas
List<SecurityScheme> securitySchemes = Lists.newArrayList(oAuth);
//securyContext
//securityContext
List<SecurityContext> securityContexts = Lists.newArrayList(securityContext);
return new Docket(DocumentationType.SWAGGER_2)
.select()
@ -67,8 +67,8 @@ public class SwaggerConfiguration {
return new ApiInfoBuilder().title("OAuth2认证中心")
.description("<div style='font-size:14px;color:red;'>OAuth2认证、注销、获取验签公钥接口</div>")
.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();

View File

@ -57,7 +57,7 @@ public class SwaggerConfiguration {
SecurityContext securityContext = new SecurityContext(Lists.newArrayList(securityReference), PathSelectors.ant("/**"));
//schemas
List<SecurityScheme> securitySchemes = Lists.newArrayList(oAuth);
//securyContext
//securityContext
List<SecurityContext> securityContexts = Lists.newArrayList(securityContext);
return new Docket(DocumentationType.SWAGGER_2)
.select()
@ -74,8 +74,8 @@ public class SwaggerConfiguration {
.title("系统管理")
.description("<div style='font-size:14px;color:red;'>用户、角色、部门、菜单、权限、字典、客户端接口</div>")
.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();