Commit 83b80f04 authored by fangxinjiang's avatar fangxinjiang

swagger3 鉴权调整

parent c1fabd26
...@@ -38,7 +38,6 @@ security: ...@@ -38,7 +38,6 @@ security:
- /v3/api-docs - /v3/api-docs
- /actuator/** - /actuator/**
- /swagger-ui/** - /swagger-ui/**
- /swagger-ui.html
...@@ -73,7 +72,7 @@ springdoc: ...@@ -73,7 +72,7 @@ springdoc:
path: /api-docs path: /api-docs
swagger-ui: swagger-ui:
#自定义swagger前端请求路径,输入http:127.0.0.1:8080/test会自动重定向到swagger页面 #自定义swagger前端请求路径,输入http:127.0.0.1:8080/test会自动重定向到swagger页面
path: /api/upms path: /api
#包扫描路径 #包扫描路径
packages-to-scan: com.yifu.cloud.plus.v1.yifu.admin.controller packages-to-scan: com.yifu.cloud.plus.v1.yifu.admin.controller
#这里定义了两个分组,可定义多个,也可以不定义 #这里定义了两个分组,可定义多个,也可以不定义
......
...@@ -40,7 +40,6 @@ import java.util.List; ...@@ -40,7 +40,6 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/dsconf") @RequestMapping("/dsconf")
@Tag(name = "数据源管理模块") @Tag(name = "数据源管理模块")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class GenDsConfController { public class GenDsConfController {
private final GenDatasourceConfService datasourceConfService; private final GenDatasourceConfService datasourceConfService;
......
...@@ -41,7 +41,6 @@ import org.springframework.web.bind.annotation.*; ...@@ -41,7 +41,6 @@ import org.springframework.web.bind.annotation.*;
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/form") @RequestMapping("/form")
@Tag(name = "表单管理") @Tag(name = "表单管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class GenFormConfController { public class GenFormConfController {
private final GenFormConfService genRecordService; private final GenFormConfService genRecordService;
......
...@@ -43,7 +43,6 @@ import java.util.Map; ...@@ -43,7 +43,6 @@ import java.util.Map;
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/generator") @RequestMapping("/generator")
@Tag(name = "代码生成模块") @Tag(name = "代码生成模块")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class GeneratorController { public class GeneratorController {
private final GeneratorService generatorService; private final GeneratorService generatorService;
......
...@@ -16,6 +16,7 @@ security: ...@@ -16,6 +16,7 @@ security:
urls: urls:
- /v3/api-docs - /v3/api-docs
- /actuator/** - /actuator/**
- /swagger-ui/**
# 数据源配置 # 数据源配置
spring: spring:
config: config:
...@@ -34,11 +35,6 @@ spring: ...@@ -34,11 +35,6 @@ spring:
resources: resources:
static-locations: classpath:/static/,classpath:/views/ static-locations: classpath:/static/,classpath:/views/
# 直接放行URL
ignore:
urls:
- /v2/api-docs
- /actuator/**
springdoc: springdoc:
api-docs: api-docs:
#是否开启文档功能 #是否开启文档功能
...@@ -47,7 +43,7 @@ springdoc: ...@@ -47,7 +43,7 @@ springdoc:
path: /api-docs path: /api-docs
swagger-ui: swagger-ui:
#自定义swagger前端请求路径,输入http:127.0.0.1:8080/test会自动重定向到swagger页面 #自定义swagger前端请求路径,输入http:127.0.0.1:8080/test会自动重定向到swagger页面
path: /api/codegen path: /api
#包扫描路径 #包扫描路径
packages-to-scan: com.yifu.cloud.plus.v1.yifu.codegen.controller packages-to-scan: com.yifu.cloud.plus.v1.yifu.codegen.controller
#这里定义了两个分组,可定义多个,也可以不定义 #这里定义了两个分组,可定义多个,也可以不定义
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment