參考資料:https://www.txlcn.org/zh-cn/index.html
1,tx-manger部署指南
下載地址:https://github.com/codingapi/tx-lcn/releases
說明:5.X版本后均需要源碼編譯
步驟:
1.1 調(diào)整tm pom.xml打開zip包打包

1.2 修改application.properties文件?調(diào)整jdbc源,redis源

1.3 ?install
mvn install
1.4 啟動(dòng)服務(wù)
java -jar /code_home/txlcn-tm/target/txlcn-tm-5.0.2.RELEASE/txlcn-tm-5.0.2.RELEASE.jar?
1.5 啟動(dòng)后臺
http://127.0.0.1:7970/admin/index.html#/
默認(rèn)密碼時(shí)codingapi
修改密碼
application.properties
# TM后臺登陸密碼,默認(rèn)值為codingapi
tx-lcn.manager.admin-key=codingapi
2, 代碼樣例
啟動(dòng)代碼:@EnableDistributedTransaction?
Application.java
業(yè)務(wù)代碼:@LcnTransaction
需要業(yè)務(wù)service
3,一些問題
場景 TM端部署后,修改端口,TC端同時(shí)修改對應(yīng)配置無法生效
原因 TM信息寫入redis無法更新
解決 寫接口自行清理緩存