編寫方式以下便可實現事務的回滾分佈式
@TxTransaction [@Transactional](https://my.oschina.net/u/3770144) public boolean hello() { //本地調用 testDao.save(); //遠程調用方 boolean res = test2Service.test(); //模擬異常 int v = 100/0; return true; }
官網以下:https://www.txlcn.org/zh-cn/.net