今天启动springboot项目的时候报错:
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
看到这个错误的第一反应会想到是DAO层数据库的问题
然而,不一定。
install了很多次都没用
最后,看帖子说是yml格式不对,但是,我的是properties文件
笑哭。。。
然后,我就开始检查自己的配置,是不是路径配错了。
一点点的注释和解开注释
发现,我的这个logging位置配置错了
于是,我改正后,重新install,就可以正常启动
但是,当我把路径改错,再次,install,报错却不能复现。
神特么springboot!!!
你学废了吗?
参考:
https://www.cnblogs.com/wangshichang/p/11418818.html