liuyangming / ByteJTA

ByteJTA is a distributed transaction manager based on the XA/2PC mechanism. It’s compatible with the JTA specification. User guide: https://github.com/liuyangming/ByteJTA/wiki
http://www.bytesoft.org
GNU Lesser General Public License v3.0
211 stars 110 forks source link

如何不使用springboot配置 #10

Open sc834466168 opened 5 years ago

sc834466168 commented 5 years ago

如何不使用springboot配置

需要配置那些bean

liuyangming commented 5 years ago

ByteJTA默认只内置了dubbo、SpringCloud的集成配置,如果没有远程调用的场景只需要多数据源的支持,引入文件bytejta-supports-standalone.xml即可;如果需要集成其他的RPC框架,则需要参考dubbo/SpringCloud的配置文件自行集成。

sc834466168 commented 5 years ago

使用dubbo, 但是现在项目还没有使用spring boot, 那需要怎么配置呢

liuyangming commented 5 years ago

参考DubboSupportConfiguration配置类,删除SpringBoot相关的EnableAutoConfiguration部分即可。