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)
这个问题困绕好久,网上的方法大多不好用,最后在一个评论区看到的解决方法,留存!
因为idea没有指定resource目录,导致启动时没读取到配置文件
方法:右击resource文件夹 -> MarkDirectory as ->Sources Root