Commit 83b80f04 authored by fangxinjiang's avatar fangxinjiang

swagger3 鉴权调整

parent c1fabd26
......@@ -38,7 +38,6 @@ security:
- /v3/api-docs
- /actuator/**
- /swagger-ui/**
- /swagger-ui.html
......@@ -73,7 +72,7 @@ springdoc:
path: /api-docs
swagger-ui:
#自定义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
#这里定义了两个分组,可定义多个,也可以不定义
......
......@@ -40,7 +40,6 @@ import java.util.List;
@RequiredArgsConstructor
@RequestMapping("/dsconf")
@Tag(name = "数据源管理模块")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class GenDsConfController {
private final GenDatasourceConfService datasourceConfService;
......
......@@ -41,7 +41,6 @@ import org.springframework.web.bind.annotation.*;
@RequiredArgsConstructor
@RequestMapping("/form")
@Tag(name = "表单管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class GenFormConfController {
private final GenFormConfService genRecordService;
......
......@@ -43,7 +43,6 @@ import java.util.Map;
@RequiredArgsConstructor
@RequestMapping("/generator")
@Tag(name = "代码生成模块")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class GeneratorController {
private final GeneratorService generatorService;
......
......@@ -16,6 +16,7 @@ security:
urls:
- /v3/api-docs
- /actuator/**
- /swagger-ui/**
# 数据源配置
spring:
config:
......@@ -34,11 +35,6 @@ spring:
resources:
static-locations: classpath:/static/,classpath:/views/
# 直接放行URL
ignore:
urls:
- /v2/api-docs
- /actuator/**
springdoc:
api-docs:
#是否开启文档功能
......@@ -47,7 +43,7 @@ springdoc:
path: /api-docs
swagger-ui:
#自定义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
#这里定义了两个分组,可定义多个,也可以不定义
......
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