配置接口注解和文档说明

This commit is contained in:
2024-03-08 16:49:43 +08:00
parent 50cbb58fd9
commit a3fcc1b0f9
6 changed files with 90 additions and 23 deletions
@@ -151,7 +151,7 @@ public class SwaggerOpenApiConfig {
// 这里的SecurityReference第一个参数值必须和SecurityScheme的name值一致
Arrays.stream(securitySchemeNames).forEach(name -> list.add(new SecurityReference(name, new AuthorizationScope[0])));
return SecurityContext.builder().operationSelector(operationContext -> {
System.out.println("operationContext" + operationContext);
// System.out.println("operationContext" + operationContext);
// 除了get方法其他方法都要校验
// return !operationContext.httpMethod().name().equals("GET");