|
|
|
@ -62,6 +62,21 @@ public interface LauncherConstant {
|
|
|
|
|
*/ |
|
|
|
|
String SENTINEL_TEST_ADDR = "172.30.0.58:8858"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* seata dev 地址 |
|
|
|
|
*/ |
|
|
|
|
String SEATA_DEV_ADDR = "127.0.0.1:8091"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* seata prod 地址 |
|
|
|
|
*/ |
|
|
|
|
String SEATA_PROD_ADDR = "172.30.0.68:8091"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* seata test 地址 |
|
|
|
|
*/ |
|
|
|
|
String SEATA_TEST_ADDR = "172.30.0.68:8091"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* dbuuo提供者 |
|
|
|
|
*/ |
|
|
|
@ -171,4 +186,21 @@ public interface LauncherConstant {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 动态获取seata地址 |
|
|
|
|
* |
|
|
|
|
* @param profile 环境变量 |
|
|
|
|
* @return addr |
|
|
|
|
*/ |
|
|
|
|
static String seataAddr(String profile) { |
|
|
|
|
switch (profile) { |
|
|
|
|
case (AppConstant.PROD_CODE): |
|
|
|
|
return SEATA_PROD_ADDR; |
|
|
|
|
case (AppConstant.TEST_CODE): |
|
|
|
|
return SEATA_TEST_ADDR; |
|
|
|
|
default: |
|
|
|
|
return SEATA_DEV_ADDR; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|