844 Star 3K Fork 927

GVPJbootProjects / jboot

 / 详情

sharding-jdbc整合问题

已完成
创建于  
2023-01-17 13:44

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包路径版本不统一

评论 (1)

大个 创建了任务

已修复。

Michael Yang 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
61279 fuhai 1578915942
Java
1
https://gitee.com/JbootProjects/jboot.git
git@gitee.com:JbootProjects/jboot.git
JbootProjects
jboot
jboot

搜索帮助