New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法加载到多数据源 #172
Comments
spring: |
先自己断点看一下啊 |
(⊙o⊙)… |
一般都是配置问题或者数据源本身问题。 排查问题的时候应尽量精简不必要的配置去排查。 |
同学,你是怎么解决的,我把这个依赖切换到3.0.0还是不行,试过把数据库连接池切换成HikariCp一样的问题 |
没有解决啊 |
就是觉得很奇怪这一块没有任何改动,早上一启动就提示这个了,标识很懵…… |
检查数据源本身,可以重启试试。 不然就断点,我猜测是添加数据源的时候添加不了线程卡住了。 |
没有,我把spring boot版本切换回2. 0后又可以,换成2.2就不行 |
我试试 |
但是现在项目要升级版本,spring boot必须是2.2,头疼 |
具体是什么版本? |
我这边也是。。。 |
2.0.4可以成功运行,2.2.4就GG思密达 |
ok,我试试看 |
同学,有解决思路吗 |
我这边改版本也不行,只能把源码弄下来调试了 |
|
QQ吧,方便一点 2689605130 |
springboot 2.2.5 + HikariCp 并未发现上述问题。要不换成2.2.5试试? |
可以贴一下配置吗? |
成功脱坑了,写了个Demo,一个jar包一个jar包引入,后来发现是Druid jar包冲突,删除自己项目引入的jar包就解决问题了 |
已经解决了,jar包之间有冲突,不是配置问题,👻 |
没有提示加载到多少数据源,其实是已经加载到了的 |
Enviroment
JDK Version(required): 1.8
SpringBoot Version(required): 2.2.4
Starter Version(required):3.0.4
Describe
动态数据源-检测到druid存在,如配置中未指定type,druid会默认配置,只进行到这一步,却没有提示加载到几个数据源
Expected Result:
Actual Result:
Steps to reproduce
Step 1
Step 2
Step 3
The text was updated successfully, but these errors were encountered: