✨ 同步 ballcat swagger 的开关配置至 springfox,这样只需配置 ballcat.swagger.enabled=false 即可完全关闭 swagger
This commit is contained in:
@@ -26,7 +26,7 @@ public class SwaggerEnabledStatusReplaceEnvironmentPostProcessor implements Envi
|
||||
|
||||
private static final String SPRINGFOX_SWAGGER_ENABLED_KEY = "springfox.documentation.enabled";
|
||||
|
||||
private static final String BALLCAT_SWAGGER_ENABLED_KEY = SwaggerProperties.PREFIX + "enabled";
|
||||
private static final String BALLCAT_SWAGGER_ENABLED_KEY = SwaggerProperties.PREFIX + ".enabled";
|
||||
|
||||
@Override
|
||||
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
|
||||
|
||||
@@ -20,7 +20,7 @@ public class SwaggerProperties {
|
||||
/**
|
||||
* 是否开启swagger
|
||||
*/
|
||||
private Boolean enabled;
|
||||
private Boolean enabled = true;
|
||||
|
||||
/**
|
||||
* 分组名称
|
||||
|
||||
Reference in New Issue
Block a user