mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-23 02:48:34 +08:00
update 优化 es 监控开启方式
This commit is contained in:
@@ -14,7 +14,8 @@ public class ActuatorEnvironmentPostProcessor implements EnvironmentPostProcesso
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
|
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
|
||||||
System.setProperty("management.health.elasticsearch.enabled", "false");
|
String enable = environment.getProperty("easy-es.enable", "false");
|
||||||
|
System.setProperty("management.health.elasticsearch.enabled", enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user