15:23:30.518 [main] ERROR com.alibaba.druid.pool.DruidDataSource - {dataSource-1} init error
时间: 2023-10-26 12:56:32 浏览: 95
druid-1.1.12jar
根据提供的引用内容,报错信息显示是关于数据库连接的问题。具体错误信息是"Failed to obtain JDBC Connection",原因是mysql-connector-java的版本过低。解决方法是将版本换成8.0.11或者8.0.17。可以通过修改jdbc.properties文件中的配置或者在Maven的pom.xml文件中修改mysql-connector-java的依赖版本来解决这个问题。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [[main] ERROR com.alibaba.druid.pool.DruidDataSource - {dataSource-1} init error](https://blog.csdn.net/qq_43331014/article/details/125120292)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [com.alibaba.druid.pool.DruidDataSource - init datasource error](https://blog.csdn.net/qq_42768827/article/details/125047989)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文