fix 修复 接口问题开关不生效问题
This commit is contained in:
parent
f8ac8c085e
commit
6c6d92a776
@ -196,8 +196,6 @@ mybatis-encryptor:
|
|||||||
|
|
||||||
# Swagger配置
|
# Swagger配置
|
||||||
swagger:
|
swagger:
|
||||||
# 是否开启swagger
|
|
||||||
enabled: true
|
|
||||||
info:
|
info:
|
||||||
# 标题
|
# 标题
|
||||||
title: '标题:${ruoyi.name}后台管理系统_接口文档'
|
title: '标题:${ruoyi.name}后台管理系统_接口文档'
|
||||||
@ -219,6 +217,9 @@ swagger:
|
|||||||
name: ${sa-token.token-name}
|
name: ${sa-token.token-name}
|
||||||
|
|
||||||
springdoc:
|
springdoc:
|
||||||
|
api-docs:
|
||||||
|
# 是否开启接口文档
|
||||||
|
enabled: true
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
# 持久化认证数据
|
# 持久化认证数据
|
||||||
persistAuthorization: true
|
persistAuthorization: true
|
||||||
|
@ -33,7 +33,7 @@ import java.util.Set;
|
|||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Configuration
|
@Configuration
|
||||||
@AutoConfigureBefore(SpringDocConfiguration.class)
|
@AutoConfigureBefore(SpringDocConfiguration.class)
|
||||||
@ConditionalOnProperty(name = "swagger.enabled", havingValue = "true", matchIfMissing = true)
|
@ConditionalOnProperty(name = "springdoc.api-docs.enabled", havingValue = "true", matchIfMissing = true)
|
||||||
public class SwaggerConfig {
|
public class SwaggerConfig {
|
||||||
|
|
||||||
private final SwaggerProperties swaggerProperties;
|
private final SwaggerProperties swaggerProperties;
|
||||||
|
@ -23,11 +23,6 @@ import java.util.List;
|
|||||||
@ConfigurationProperties(prefix = "swagger")
|
@ConfigurationProperties(prefix = "swagger")
|
||||||
public class SwaggerProperties {
|
public class SwaggerProperties {
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否开启 openApi 文档
|
|
||||||
*/
|
|
||||||
private Boolean enabled = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文档基本信息
|
* 文档基本信息
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user