项目启动,报错信息如下:
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).
错误信息提示我们:配置数据源失败:未指定’url’属性,且无法配置嵌入的数据源。
但是我写的url之前还能使用,并没有更改,而且项目在启动时不会检测url是否可以连接
哪里错了呢,我尝试再三,发现更换一个密码即可成功启动
进而发现密码中不能带@,去掉@符号后成功启动项目,并成功连接数据库