3

用sharding-jdbc分表用了Druid的mysql驱动,但是调用时是空指针

 2 years ago
source link: https://www.oschina.net/question/1394955_2324673
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

用sharding-jdbc分表用了Druid的mysql驱动,但是调用时是空指针

malie0 发布于 今天 18:37

网上查了下好像是数据库驱动的路径是sharding-jdbc的,所以用老的druid的路径查找会找不到,但是按照网上说的改@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})以及Druid不用starter都没法解决,不知道有没有其他的解决方法?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK