diff --git a/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java b/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java index 089ef35..4369c25 100644 --- a/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java +++ b/blade-core-launch/src/main/java/org/springblade/core/launch/BladeApplication.java @@ -92,7 +92,7 @@ public class BladeApplication { props.setProperty("blade.is-local", String.valueOf(isLocalDev())); props.setProperty("blade.dev-mode", profile.equals(AppConstant.PROD_CODE) ? "false" : "true"); props.setProperty("blade.service.version", AppConstant.APPLICATION_VERSION); - props.setProperty(ConsulConstant.CONSUL_HOST_KEY, profile.equals(AppConstant.DEV_CDOE) ? ConsulConstant.CONSUL_DEV_HOST : ConsulConstant.CONSUL_PROD_HOST); + props.setProperty(ConsulConstant.CONSUL_HOST_KEY, ConsulConstant.CONSUL_HOST); props.setProperty(ConsulConstant.CONSUL_PORT_KEY, ConsulConstant.CONSUL_PORT); props.setProperty(ConsulConstant.CONSUL_CONFIG_FORMAT_KEY, ConsulConstant.CONSUL_CONFIG_FORMAT); props.setProperty(ConsulConstant.CONSUL_WATCH_DELAY_KEY, ConsulConstant.CONSUL_WATCH_DELAY); 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 a616b05..79a99aa 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 @@ -50,12 +50,7 @@ public interface ConsulConstant { /** * consul dev 地址 */ - String CONSUL_DEV_HOST = "http://localhost"; - - /** - * consul prod 地址 - */ - String CONSUL_PROD_HOST = "http://192.168.186.129"; + String CONSUL_HOST = "http://localhost"; /** * consul端口