mirror of https://github.com/jeecgboot/jeecg-boot
parent
a17b403675
commit
6e721e4120
|
@ -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(
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
springdoc.auto-tag-classes: false
|
||||
springdoc.packages-to-scan: org.jeecg
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue