mirror of
https://gitee.com/nutz/nutzboot.git
synced 2024-12-02 03:38:08 +08:00
update: starter-fescar 默认不启用
This commit is contained in:
parent
65f26c4b45
commit
1a9e40bcd6
@ -3,6 +3,8 @@ server.port=0
|
|||||||
jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
|
jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
|
||||||
jdbc.username=root
|
jdbc.username=root
|
||||||
jdbc.password=root
|
jdbc.password=root
|
||||||
|
|
||||||
|
fescar.enabled=true
|
||||||
fescar.applicationId=dubbo-fescar-account
|
fescar.applicationId=dubbo-fescar-account
|
||||||
fescar.txServiceGroup=my_test_tx_group
|
fescar.txServiceGroup=my_test_tx_group
|
||||||
|
|
||||||
|
@ -9,5 +9,6 @@ jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
|
|||||||
jdbc.username=root
|
jdbc.username=root
|
||||||
jdbc.password=root
|
jdbc.password=root
|
||||||
|
|
||||||
|
fescar.enabled=true
|
||||||
fescar.applicationId=dubbo-fescar-order
|
fescar.applicationId=dubbo-fescar-order
|
||||||
fescar.txServiceGroup=my_test_tx_group
|
fescar.txServiceGroup=my_test_tx_group
|
@ -9,6 +9,6 @@ jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
|
|||||||
jdbc.username=root
|
jdbc.username=root
|
||||||
jdbc.password=root
|
jdbc.password=root
|
||||||
|
|
||||||
|
fescar.enabled=true
|
||||||
fescar.applicationId=dubbo-fescar-storage
|
fescar.applicationId=dubbo-fescar-storage
|
||||||
fescar.txServiceGroup=my_test_tx_group
|
fescar.txServiceGroup=my_test_tx_group
|
@ -10,5 +10,6 @@ jdbc.url=jdbc:mysql://127.0.0.1/fescar_demo
|
|||||||
jdbc.username=root
|
jdbc.username=root
|
||||||
jdbc.password=root
|
jdbc.password=root
|
||||||
|
|
||||||
|
fescar.enabled=true
|
||||||
fescar.applicationId=dubbo-fescar-web
|
fescar.applicationId=dubbo-fescar-web
|
||||||
fescar.txServiceGroup=my_test_tx_group
|
fescar.txServiceGroup=my_test_tx_group
|
@ -20,6 +20,9 @@ public class FescarStarter implements ServerFace {
|
|||||||
|
|
||||||
protected static final String PRE = "fescar.";
|
protected static final String PRE = "fescar.";
|
||||||
|
|
||||||
|
@PropDoc(value = "fescar是否启用", defaultValue = "false", type = "boolean")
|
||||||
|
public static String PROP_ENABLED = PRE + "enabled";
|
||||||
|
|
||||||
@PropDoc(value = "fescar应用id", need = true)
|
@PropDoc(value = "fescar应用id", need = true)
|
||||||
public static String PROP_APPID = PRE + "applicationId";
|
public static String PROP_APPID = PRE + "applicationId";
|
||||||
|
|
||||||
@ -46,7 +49,7 @@ public class FescarStarter implements ServerFace {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!conf.getBoolean("fescar.enable", true)) {
|
if (!conf.getBoolean(PROP_ENABLED, false)) {
|
||||||
log.info("Global transaction is disabled.");
|
log.info("Global transaction is disabled.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user