报错信息(看图):

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

新建springboot项目启动报错Failed to auto-configure a DataSource

 

导致报错的原因(如下图):

新建springboot项目启动报错Failed to auto-configure a DataSource

出现相似问题的同学们可以查看下 自己的Maven自动导入的jar包是不是有错误,

我把jar包报错处理了就可以运行起来了。网上对这个问题的回答各式各样,所以在此回复一下,

希望看到的人多一份解决bug的可能吧

 

测试通过:

新建springboot项目启动报错Failed to auto-configure a DataSource

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

相关文章: