代码拉取完成,页面将自动刷新
jboot整合sharding-jdbc时必须使用如下Maven中坐标:https://mvnrepository.com/artifact/org.apache.shardingsphere/shardingsphere-jdbc-core
而不是官网手册(https://shardingsphere.apache.org/document/current/cn/overview/)中的
https://mvnrepository.com/artifact/org.apache.shardingsphere/shardingsphere-jdbc/5.3.1
同时sharding-jdbc版本不能高于4.1.1,Maven坐标https://mvnrepository.com/artifact/org.apache.shardingsphere/sharding-jdbc-core
否则ClassNotFoundException
根本原因,jboot源码io.jboot.db.datasource.DataSourceBuilder中因为shardingjdbc版本问题org.apache.shardingsphere.shardingjdbc.api.yaml.YamlShardingDataSourceFactory包路径版本不统一
已修复。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论