fix 修复 接口问题开关不生效问题

This commit is contained in:
疯狂的狮子Li
2023-02-03 00:42:52 +08:00
parent 624bbe8369
commit 1beee9a83d
3 changed files with 4 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ import java.util.*;
@RequiredArgsConstructor
@AutoConfiguration(before = SpringDocConfiguration.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 {
private final SwaggerProperties swaggerProperties;

View File

@@ -22,11 +22,6 @@ import java.util.Map;
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {
/**
* 是否开启 openApi 文档
*/
private Boolean enabled = true;
/**
* 文档基本信息
*/