Merge remote-tracking branch 'origin/main'

This commit is contained in:
wr
2025-12-10 16:22:42 +08:00
3 changed files with 237 additions and 342 deletions

View File

@@ -45,6 +45,9 @@ public class Knife4jSwaggerConfig {
@Value("${microservice.gateway.url}")
private String gatewayUrl;
@Value("${swagger.enable:true}")
private Boolean swaggerEnable;
/**
* swagger通用配置
*/
@@ -96,7 +99,7 @@ public class Knife4jSwaggerConfig {
//securyContext
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.enable(true)
.enable(swaggerEnable)
.select()
// 指定添加swagger注解的方法
// .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))

View File

@@ -217,6 +217,7 @@ whitelist:
- /pqs-auth/judgeToken/guangZhou
- /webjars/**
- /actuator/**
- /doc.html
- /swagger-resources/**
- /*/v2/api-docs