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

支持mysql 8.0嘛? #11

Closed Liloupar closed 5 years ago

Liloupar commented 5 years ago

我看mysql 驱动还是5.1的?

liuyangming commented 5 years ago

支持。ByteJTA并不限制使用某个特定的DB或某个特定的版本。只是在ByteJTA-sample中用MySQL做一个样例而已。

Liloupar commented 5 years ago

@liuyangming 我试了下是可以的。但是驱动路径需要手动添加了 8.0是com.mysql.cj.jdbc.MysqlXADataSource了。 DataSourceSpiBuilder.create().type((Class<? extends XADataSource>) Class.forName("com.mysql.cj.jdbc.MysqlXADataSource")).build()