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:
commit
e695fd5f37
@ -51,6 +51,8 @@ public class NacosConfigEndpointAutoConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
@ConditionalOnProperty(name = "spring.cloud.nacos.config.health.enabled", matchIfMissing = true)
|
||||
public NacosConfigHealthIndicator nacosConfigHealthIndicator() {
|
||||
return new NacosConfigHealthIndicator(nacosConfigManager.getConfigService());
|
||||
}
|
||||
|
@ -40,7 +40,6 @@
|
||||
"type": "java.util.List",
|
||||
"description": "a set of shared configurations .e.g: spring.cloud.nacos.config.shared-configs[0]=xxx ."
|
||||
},
|
||||
|
||||
{
|
||||
"name": "spring.cloud.nacos.config.refreshable-dataids",
|
||||
"type": "java.lang.String",
|
||||
@ -56,6 +55,12 @@
|
||||
"type": "java.util.List",
|
||||
"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",
|
||||
"type": "java.lang.Boolean",
|
||||
|
Loading…
x
Reference in New Issue
Block a user