update: starter-fescar 默认不启用

This commit is contained in:
Wizzercn 2019-03-28 22:14:44 +08:00
parent 65f26c4b45
commit 1a9e40bcd6
5 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;
} }