An error was reported when starting the springboot project today:
***************************
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).
The first reaction to seeing this error will think of the problem of the DAO layer database
However, not necessarily.
Installed many times and it was useless
Finally, I read the post and said that the yml format is wrong, but mine is the properties file
. . .
Then, I started to check my configuration to see if the path was mismatched.
A little bit of commenting and uncommenting
, I found that my logging location was configured incorrectly.
So, after I corrected it, reinstalled it, and it started normally.
However, when I change the path to the wrong path, install again, the error cannot be reproduced.
God special springboot! ! !
Did you lose school?
Reference:
https://www.cnblogs.com/wangshichang/p/11418818.html