baomidou / dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务
https://www.kancloud.cn/tracy5546/dynamic-datasource/2264611
Apache License 2.0
4.75k stars 1.19k forks source link

druid由1.2.15升级到1.2.17兼容问题 #497

Closed a523546273 closed 1 year ago

a523546273 commented 1 year ago

Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。

Enviroment

JDK Version(required): 1.8

SpringBoot Version(required): 2.5.1

dynamic-datasource-spring-boot-starter Version(required):3.6.0

druid Version(optional):1.2.17

Describe what happened

Expected Result:程序正常运行

Actual Result:启动报错

If there is an exception,or aop invalid,please attach the exception trace:


Just paste your stack trace here!
An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.baomidou.dynamic.datasource.creator.DruidDataSourceCreator.doCreateDataSource(DruidDataSourceCreator.java:77)

The following method did not exist:

    com.alibaba.druid.pool.DruidDataSource.configFromPropety(Ljava/util/Properties;)V

# Steps to reproduce

- Step 1 

- Step 2 

- Step 3 

![image](https://user-images.githubusercontent.com/37894670/235038521-d0c6768d-3139-4252-960b-062ed86553d1.png)
![image](https://user-images.githubusercontent.com/37894670/235038585-13b91c06-3033-4c71-95f0-cff73b1b77d1.png)
最新DruidDataSource在构造函数修改了内部方法的名称 由原来的configFromPropety->configFromPropeties 麻烦兼容一下  谢谢
richwxd commented 1 year ago

应该是druid 1.2.17上修复了内部的一个BUG,需要更新一下版本

huayanYu commented 1 year ago

等待4.0.0

huyang19881115 commented 1 year ago

这个目前是需要大的改动才能够支撑吗?目前也是遇到这个问题。druid 升级到1.2.17,构造方法的问题,这块有个说明解决的办法没?

huyang19881115 commented 1 year ago

看大佬好像修复了,最近会升级版本吗?有升级版本的计划吗?我们这边也不知道如何通过反射来兼容这个启动的bug,到时再想想看下如何处理