diff --git a/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulConstant.java b/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulConstant.java index d96066e..a616b05 100644 --- a/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulConstant.java +++ b/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulConstant.java @@ -45,7 +45,7 @@ public interface ConsulConstant { /** * enabled key */ - String CONSUL_WATCH_ENABLEd_KEY = "spring.cloud.consul.watch.enabled"; + String CONSUL_WATCH_ENABLED_KEY = "spring.cloud.consul.watch.enabled"; /** * consul dev 地址 diff --git a/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulLauncherServiceImpl.java b/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulLauncherServiceImpl.java index 4a01e6c..7431988 100644 --- a/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulLauncherServiceImpl.java +++ b/blade-core-launch/src/main/java/org/springblade/core/launch/consul/ConsulLauncherServiceImpl.java @@ -39,7 +39,7 @@ public class ConsulLauncherServiceImpl implements LauncherService { } props.setProperty(ConsulConstant.CONSUL_CONFIG_FORMAT_KEY, ConsulConstant.CONSUL_CONFIG_FORMAT); props.setProperty(ConsulConstant.CONSUL_WATCH_DELAY_KEY, ConsulConstant.CONSUL_WATCH_DELAY); - props.setProperty(ConsulConstant.CONSUL_WATCH_ENABLEd_KEY, ConsulConstant.CONSUL_WATCH_ENABLED); + props.setProperty(ConsulConstant.CONSUL_WATCH_ENABLED_KEY, ConsulConstant.CONSUL_WATCH_ENABLED); } }