mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-05 10:09:32 +08:00
🎉 1.0.0-RC3.
This commit is contained in:
parent
f3fe324ac9
commit
a671ef4007
@ -92,11 +92,11 @@ 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, 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);
|
||||
props.setProperty(ConsulConstant.CONSUL_WATCH_ENABLED_KEY, ConsulConstant.CONSUL_WATCH_ENABLED);
|
||||
props.setProperty("spring.cloud.consul.host", ConsulConstant.CONSUL_HOST);
|
||||
props.setProperty("spring.cloud.consul.port", ConsulConstant.CONSUL_PORT);
|
||||
props.setProperty("spring.cloud.consul.config.format", ConsulConstant.CONSUL_CONFIG_FORMAT);
|
||||
props.setProperty("spring.cloud.consul.watch.delay", ConsulConstant.CONSUL_WATCH_DELAY);
|
||||
props.setProperty("spring.cloud.consul.watch.enabled", ConsulConstant.CONSUL_WATCH_ENABLED);
|
||||
// 加载自定义组件
|
||||
ServiceLoader<LauncherService> loader = ServiceLoader.load(LauncherService.class);
|
||||
loader.forEach(launcherService -> launcherService.launcher(builder, appName, profile));
|
||||
|
@ -22,31 +22,6 @@ package org.springblade.core.launch.consul;
|
||||
*/
|
||||
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 地址
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user