spring boot分库分表时使用shardingsphere,出现以下异常:
NoClassDefFoundError: Could not initialize class org.apache.shardingsphere.core.parse.core.rule.registry.ParseRuleRegistry
依赖为:
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
<version>4.0.0-RC2</version>
</dependency>
出现原因:待确认。
解决方法:jdk改为1.8。










网友评论