归集spring-doc默认配置

(cherry picked from commit d4d0c884f0)
pull/8116/head
EightMonth 2025-04-03 22:31:26 +08:00
parent a17b403675
commit 6e721e4120
8 changed files with 4 additions and 25 deletions

View File

@ -14,6 +14,7 @@ import org.springdoc.core.customizers.GlobalOpenApiCustomizer;
import org.springdoc.core.filters.GlobalOpenApiMethodFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@ -26,6 +27,7 @@ import java.util.Set;
*/
@Slf4j
@Configuration
@PropertySource("classpath:config/default-spring-doc.properties")
public class Swagger3Config implements WebMvcConfigurer {
// 定义不需要注入安全要求的路径集合
Set<String> excludedPaths = new HashSet<>(Arrays.asList(

View File

@ -0,0 +1,2 @@
springdoc.auto-tag-classes: false
springdoc.packages-to-scan: org.jeecg

View File

@ -306,10 +306,6 @@ logging:
level:
org.flywaydb: debug
org.jeecg.modules.system.mapper: info
# springdoc-openapi项目配置
springdoc:
auto-tag-classes: false
packages-to-scan: org.jeecg
knife4j:
#开启增强配置
enable: true

View File

@ -140,10 +140,6 @@ spring:
host: 127.0.0.1
port: 6379
password: ''
# springdoc-openapi项目配置
springdoc:
auto-tag-classes: false
packages-to-scan: org.jeecg
#mybatis plus 设置
mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml

View File

@ -154,10 +154,6 @@ spring:
host: 127.0.0.1
port: 6379
password: ''
# springdoc-openapi项目配置
springdoc:
auto-tag-classes: false
packages-to-scan: org.jeecg
#mybatis plus 设置
mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml

View File

@ -184,10 +184,6 @@ spring:
host: 127.0.0.1
port: 6379
password: ''
# springdoc-openapi项目配置
springdoc:
auto-tag-classes: false
packages-to-scan: org.jeecg
#mybatis plus 设置
mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml

View File

@ -184,10 +184,6 @@ spring:
host: 192.168.1.188
port: 6379
password: ''
# springdoc-openapi项目配置
springdoc:
auto-tag-classes: false
packages-to-scan: org.jeecg
#mybatis plus 设置
mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml

View File

@ -1,11 +1,6 @@
server:
port: 7001
springdoc:
packages-to-exclude:
- org.jeecg.modules.drag
- org.jeecg.modules.online
- org.jeecg.modules.jmreport
spring:
application:
name: jeecg-system