Error creating bean with name ‘dataSource‘ defined in class path resource...

Error creating bean with name ‘dataSource‘ defined in class path resource...,第1张

报错信息

Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Invocation of init method failed; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsEx

解决方案 

检查配置文件 application.propertice 或者 application.yml 文件里面配置数据库信息;

我的问题出在 mysql 的 url:端口号写错了。

完。。。 

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/2990416.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-09-23
下一篇 2022-09-23

发表评论

登录后才能评论

评论列表(0条)

保存