diff --git a/blade-common/src/main/java/org/springblade/common/config/BladeCommonConfiguration.java b/blade-common/src/main/java/org/springblade/common/config/BladeCommonConfiguration.java
index 1b46381f..e8bfb1ab 100644
--- a/blade-common/src/main/java/org/springblade/common/config/BladeCommonConfiguration.java
+++ b/blade-common/src/main/java/org/springblade/common/config/BladeCommonConfiguration.java
@@ -17,8 +17,6 @@ package org.springblade.common.config;
import lombok.AllArgsConstructor;
-import org.springblade.common.tool.DictUtil;
-import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
@@ -30,9 +28,4 @@ import org.springframework.context.annotation.Configuration;
@AllArgsConstructor
public class BladeCommonConfiguration {
- @Bean
- public DictUtil dictUtil() {
- return new DictUtil();
- }
-
}
diff --git a/blade-common/src/main/java/org/springblade/common/constant/CommonConstant.java b/blade-common/src/main/java/org/springblade/common/constant/CommonConstant.java
index a42c0173..1d838a75 100644
--- a/blade-common/src/main/java/org/springblade/common/constant/CommonConstant.java
+++ b/blade-common/src/main/java/org/springblade/common/constant/CommonConstant.java
@@ -7,6 +7,21 @@ package org.springblade.common.constant;
*/
public interface CommonConstant {
+ /**
+ * consul dev 地址
+ */
+ String CONSUL_DEV_HOST = "http://localhost";
+
+ /**
+ * consul prod 地址
+ */
+ String CONSUL_PROD_HOST = "http://192.168.186.129";
+
+ /**
+ * consul端口
+ */
+ String CONSUL_PORT = "8500";
+
/**
* 顶级父节点id
*/
diff --git a/blade-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java b/blade-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java
new file mode 100644
index 00000000..17a4229b
--- /dev/null
+++ b/blade-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java
@@ -0,0 +1,39 @@
+/**
+ * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
+ *
+ * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.gnu.org/licenses/lgpl.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.springblade.common.launch;
+
+import org.springblade.common.constant.CommonConstant;
+import org.springblade.core.launch.constant.AppConstant;
+import org.springblade.core.launch.service.LauncherService;
+import org.springframework.boot.builder.SpringApplicationBuilder;
+
+import java.util.Properties;
+
+/**
+ * 启动参数拓展
+ *
+ * @author smallchil
+ */
+public class LauncherServiceImpl implements LauncherService {
+
+ @Override
+ public void launcher(SpringApplicationBuilder builder, String appName, String profile) {
+ Properties props = System.getProperties();
+ props.setProperty("spring.cloud.consul.host", profile.equals(AppConstant.DEV_CDOE) ? CommonConstant.CONSUL_DEV_HOST : CommonConstant.CONSUL_PROD_HOST);
+ props.setProperty("spring.cloud.consul.port", CommonConstant.CONSUL_PORT);
+ }
+
+}
diff --git a/blade-common/src/main/java/org/springblade/common/tool/DictUtil.java b/blade-common/src/main/java/org/springblade/common/tool/DictUtil.java
deleted file mode 100644
index c6e74c73..00000000
--- a/blade-common/src/main/java/org/springblade/common/tool/DictUtil.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springblade.common.tool;
-
-/**
- * 字典工具类
- *
- * @author Chill
- */
-public class DictUtil {
-}
diff --git a/blade-common/src/main/resources/META-INF/services/org.springblade.core.launch.service.LauncherService b/blade-common/src/main/resources/META-INF/services/org.springblade.core.launch.service.LauncherService
new file mode 100644
index 00000000..87512c9d
--- /dev/null
+++ b/blade-common/src/main/resources/META-INF/services/org.springblade.core.launch.service.LauncherService
@@ -0,0 +1 @@
+org.springblade.common.launch.LauncherServiceImpl
diff --git a/blade-gateway/pom.xml b/blade-gateway/pom.xml
index c7aba8c8..c8b7b1cb 100644
--- a/blade-gateway/pom.xml
+++ b/blade-gateway/pom.xml
@@ -31,6 +31,17 @@