fix: seata(原fescar)的配置信息前缀也得改

This commit is contained in:
Wendal Chen 2019-04-19 11:48:49 +08:00
parent 7df4520dc5
commit 045c5ff487
6 changed files with 22 additions and 17 deletions

View File

@ -4,9 +4,9 @@ jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
jdbc.username=root
jdbc.password=root
fescar.enabled=true
fescar.applicationId=dubbo-fescar-account
fescar.txServiceGroup=my_test_tx_group
seata.enabled=true
seata.applicationId=dubbo-fescar-account
seata.txServiceGroup=my_test_tx_group
dubbo.application.name=dubbo-fescar-account
dubbo.registry.address=zookeeper://127.0.0.1:2181

View File

@ -9,6 +9,6 @@ jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
jdbc.username=root
jdbc.password=root
fescar.enabled=true
fescar.applicationId=dubbo-fescar-order
fescar.txServiceGroup=my_test_tx_group
seata.enabled=true
seata.applicationId=dubbo-fescar-order
seata.txServiceGroup=my_test_tx_group

View File

@ -9,6 +9,6 @@ jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
jdbc.username=root
jdbc.password=root
fescar.enabled=true
fescar.applicationId=dubbo-fescar-storage
fescar.txServiceGroup=my_test_tx_group
seata.enabled=true
seata.applicationId=dubbo-fescar-storage
seata.txServiceGroup=my_test_tx_group

View File

@ -10,6 +10,6 @@ jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
jdbc.username=root
jdbc.password=root
fescar.enabled=true
fescar.applicationId=dubbo-fescar-web
fescar.txServiceGroup=my_test_tx_group
seata.enabled=true
seata.applicationId=dubbo-fescar-web
seata.txServiceGroup=my_test_tx_group

View File

@ -19,15 +19,15 @@ public class SeataStarter implements ServerFace {
private static final Log log = Logs.get();
protected static final String PRE = "fescar.";
protected static final String PRE = "seata.";
@PropDoc(value = "fescar是否启用", defaultValue = "false", type = "boolean")
@PropDoc(value = "seata是否启用", defaultValue = "false", type = "boolean")
public static String PROP_ENABLED = PRE + "enabled";
@PropDoc(value = "fescar应用id", need = true)
@PropDoc(value = "seata应用id", need = true)
public static String PROP_APPID = PRE + "applicationId";
@PropDoc(value = "fescar事务组", need = true)
@PropDoc(value = "seata事务组", need = true)
public static String PROP_TXGROUP = PRE + "txServiceGroup";
@PropDoc(value = "自动创建undo表", defaultValue = "true")
@ -59,7 +59,7 @@ public class SeataStarter implements ServerFace {
throw Lang.makeThrow("Ioc.$conf expect property '%s'", PROP_APPID);
}
txServiceGroup = conf.check(PROP_TXGROUP);
log.infof("fescar applicationId=%s txServiceGroup=%s", applicationId, txServiceGroup);
log.infof("seata applicationId=%s txServiceGroup=%s", applicationId, txServiceGroup);
initClient();
}

View File

@ -937,6 +937,11 @@
<artifactId>nutzboot-starter-seata</artifactId>
<version>${nutzboot.version}</version>
</dependency>
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutzboot-starter-fescar</artifactId>
<version>${nutzboot.version}</version>
</dependency>
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutzboot-starter-caffeine</artifactId>