目录
解决方法:第一步选择对应项目 右击 :Open Module Settings
springboot未指定“url”属性,也无法配置嵌入式数据源。原因:无法确定合适的驱动程序类
打开新springboot项目时:
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).
先检查yml数据源配置文件是否正确,账户密码等。。。。
发现target文件中没有 resource文件,仔细看发现resource文件没有图标。
解决方法:第一步选择对应项目 右击 :Open Module Settings
第二步:按照对应步骤依次点击,最后别忘了Apply
如果遇到其他启动报错无法,可以私信我