fix 修复 接口问题开关不生效问题
parent
624bbe8369
commit
1beee9a83d
|
|
@ -232,8 +232,6 @@ mybatis-plus:
|
||||||
|
|
||||||
# swagger配置
|
# swagger配置
|
||||||
swagger:
|
swagger:
|
||||||
# 是否开启swagger
|
|
||||||
enabled: true
|
|
||||||
info:
|
info:
|
||||||
# 标题
|
# 标题
|
||||||
title: '标题:RuoYi-Cloud-Plus微服务权限管理系统_接口文档'
|
title: '标题:RuoYi-Cloud-Plus微服务权限管理系统_接口文档'
|
||||||
|
|
@ -259,6 +257,9 @@ swagger:
|
||||||
ruoyi-gen: /code
|
ruoyi-gen: /code
|
||||||
|
|
||||||
springdoc:
|
springdoc:
|
||||||
|
api-docs:
|
||||||
|
# 是否开启接口文档
|
||||||
|
enabled: true
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
# 持久化认证数据
|
# 持久化认证数据
|
||||||
persistAuthorization: true
|
persistAuthorization: true
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import java.util.*;
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@AutoConfiguration(before = SpringDocConfiguration.class)
|
@AutoConfiguration(before = SpringDocConfiguration.class)
|
||||||
@EnableConfigurationProperties(SwaggerProperties.class)
|
@EnableConfigurationProperties(SwaggerProperties.class)
|
||||||
@ConditionalOnProperty(name = "swagger.enabled", havingValue = "true", matchIfMissing = true)
|
@ConditionalOnProperty(name = "springdoc.api-docs.enabled", havingValue = "true", matchIfMissing = true)
|
||||||
public class SwaggerAutoConfiguration {
|
public class SwaggerAutoConfiguration {
|
||||||
|
|
||||||
private final SwaggerProperties swaggerProperties;
|
private final SwaggerProperties swaggerProperties;
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,6 @@ import java.util.Map;
|
||||||
@ConfigurationProperties(prefix = "swagger")
|
@ConfigurationProperties(prefix = "swagger")
|
||||||
public class SwaggerProperties {
|
public class SwaggerProperties {
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否开启 openApi 文档
|
|
||||||
*/
|
|
||||||
private Boolean enabled = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文档基本信息
|
* 文档基本信息
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue