1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

Merge pull request #1237 from illlight/master

healthcheck switch config property
This commit is contained in:
Mercy Ma 2020-03-18 12:24:35 +08:00 committed by GitHub
commit e695fd5f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -51,6 +51,8 @@ public class NacosConfigEndpointAutoConfiguration {
} }
@Bean @Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(name = "spring.cloud.nacos.config.health.enabled", matchIfMissing = true)
public NacosConfigHealthIndicator nacosConfigHealthIndicator() { public NacosConfigHealthIndicator nacosConfigHealthIndicator() {
return new NacosConfigHealthIndicator(nacosConfigManager.getConfigService()); return new NacosConfigHealthIndicator(nacosConfigManager.getConfigService());
} }

View File

@ -40,7 +40,6 @@
"type": "java.util.List", "type": "java.util.List",
"description": "a set of shared configurations .e.g: spring.cloud.nacos.config.shared-configs[0]=xxx ." "description": "a set of shared configurations .e.g: spring.cloud.nacos.config.shared-configs[0]=xxx ."
}, },
{ {
"name": "spring.cloud.nacos.config.refreshable-dataids", "name": "spring.cloud.nacos.config.refreshable-dataids",
"type": "java.lang.String", "type": "java.lang.String",
@ -56,6 +55,12 @@
"type": "java.util.List", "type": "java.util.List",
"description": "a set of extensional configurations .e.g: spring.cloud.nacos.config.extension-configs[0]=xxx ." "description": "a set of extensional configurations .e.g: spring.cloud.nacos.config.extension-configs[0]=xxx ."
}, },
{
"name": "spring.cloud.nacos.config.health.enabled",
"type": "java.lang.Boolean",
"defaultValue": true,
"description": "the switch for health check, it default enabled(true)."
},
{ {
"name": "spring.cloud.nacos.config.refresh-enabled", "name": "spring.cloud.nacos.config.refresh-enabled",
"type": "java.lang.Boolean", "type": "java.lang.Boolean",