报错内容如下:
***************************
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中,右上角有一个如下红框中的按钮
进行如下四步操作
原因大概解释就是项目在Git下来以后,resources包中的配置文件并没有正常加载加载,上面四步的操作就是为了让配置文件重新加载