🎉 1.0.0-RC3.

This commit is contained in:
smallchill 2019-01-03 14:17:15 +08:00
parent 947eac916a
commit f3fe324ac9
2 changed files with 2 additions and 7 deletions

View File

@ -92,7 +92,7 @@ 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, 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_PORT_KEY, ConsulConstant.CONSUL_PORT);
props.setProperty(ConsulConstant.CONSUL_CONFIG_FORMAT_KEY, ConsulConstant.CONSUL_CONFIG_FORMAT); 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_DELAY_KEY, ConsulConstant.CONSUL_WATCH_DELAY);

View File

@ -50,12 +50,7 @@ public interface ConsulConstant {
/** /**
* consul dev 地址 * consul dev 地址
*/ */
String CONSUL_DEV_HOST = "http://localhost"; String CONSUL_HOST = "http://localhost";
/**
* consul prod 地址
*/
String CONSUL_PROD_HOST = "http://192.168.186.129";
/** /**
* consul端口 * consul端口