启动项目的时候,出现以下错误,
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).
翻译的意思是:
配置DataSource失败:'url’属性未指定,无法配置嵌入式数据源。
原因:未能确定合适的驱动程序类
网上搜索后,各种解决方法:
如:点击查看该博主的解决方法
https://www.cnblogs.com/javawxid/p/10949511.html
网上的方法是针对不同的情况进行不同的解决,但是对我目前这个项目来说,是没有用的。后来问了同事才知道,要去配置参数。