mirror of
https://gitee.com/nutz/nutzboot.git
synced 2024-12-02 03:38:08 +08:00
fix: seata(原fescar)的配置信息前缀也得改
This commit is contained in:
parent
7df4520dc5
commit
045c5ff487
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
@ -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();
|
||||
}
|
||||
|
5
pom.xml
5
pom.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user