🎉 1.0.0-RC3.

This commit is contained in:
smallchill 2019-01-03 14:25:48 +08:00
parent f3fe324ac9
commit a671ef4007
2 changed files with 5 additions and 30 deletions

View File

@ -92,11 +92,11 @@ public class BladeApplication {
props.setProperty("blade.is-local", String.valueOf(isLocalDev())); props.setProperty("blade.is-local", String.valueOf(isLocalDev()));
props.setProperty("blade.dev-mode", profile.equals(AppConstant.PROD_CODE) ? "false" : "true"); props.setProperty("blade.dev-mode", profile.equals(AppConstant.PROD_CODE) ? "false" : "true");
props.setProperty("blade.service.version", AppConstant.APPLICATION_VERSION); props.setProperty("blade.service.version", AppConstant.APPLICATION_VERSION);
props.setProperty(ConsulConstant.CONSUL_HOST_KEY, ConsulConstant.CONSUL_HOST); props.setProperty("spring.cloud.consul.host", ConsulConstant.CONSUL_HOST);
props.setProperty(ConsulConstant.CONSUL_PORT_KEY, ConsulConstant.CONSUL_PORT); props.setProperty("spring.cloud.consul.port", ConsulConstant.CONSUL_PORT);
props.setProperty(ConsulConstant.CONSUL_CONFIG_FORMAT_KEY, ConsulConstant.CONSUL_CONFIG_FORMAT); props.setProperty("spring.cloud.consul.config.format", ConsulConstant.CONSUL_CONFIG_FORMAT);
props.setProperty(ConsulConstant.CONSUL_WATCH_DELAY_KEY, ConsulConstant.CONSUL_WATCH_DELAY); props.setProperty("spring.cloud.consul.watch.delay", ConsulConstant.CONSUL_WATCH_DELAY);
props.setProperty(ConsulConstant.CONSUL_WATCH_ENABLED_KEY, ConsulConstant.CONSUL_WATCH_ENABLED); props.setProperty("spring.cloud.consul.watch.enabled", ConsulConstant.CONSUL_WATCH_ENABLED);
// 加载自定义组件 // 加载自定义组件
ServiceLoader<LauncherService> loader = ServiceLoader.load(LauncherService.class); ServiceLoader<LauncherService> loader = ServiceLoader.load(LauncherService.class);
loader.forEach(launcherService -> launcherService.launcher(builder, appName, profile)); loader.forEach(launcherService -> launcherService.launcher(builder, appName, profile));

View File

@ -22,31 +22,6 @@ package org.springblade.core.launch.consul;
*/ */
public interface ConsulConstant { public interface ConsulConstant {
/**
* host key
*/
String CONSUL_HOST_KEY = "spring.cloud.consul.host";
/**
* port key
*/
String CONSUL_PORT_KEY = "spring.cloud.consul.port";
/**
* format key
*/
String CONSUL_CONFIG_FORMAT_KEY = "spring.cloud.consul.config.format";
/**
* delay key
*/
String CONSUL_WATCH_DELAY_KEY = "spring.cloud.consul.watch.delay";
/**
* enabled key
*/
String CONSUL_WATCH_ENABLED_KEY = "spring.cloud.consul.watch.enabled";
/** /**
* consul dev 地址 * consul dev 地址
*/ */