shardingsphere com.atomikos.icatch.jta.JtaTransactionServicePlugin.beforeInit()V
今天使用shardingsphere 5.1.0版本做分库分表,同时测试了他的分布式事务XA的解决方案,项目启动的时候就报上面这个错误;
引入包
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-transaction-xa-core</artifactId>
<version>5.1.0</version>
</dependency>
解决方案:
将包的5.1.0 改成了5.0.0