Reason: Failed to determine a suitable driver class

img

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
application的数据库路径、用户名、秘密都是正确的,数据库相应内容也都存在,该怎么解决

参考解决:

mysql数据源配置出现了问题,仔细检查一下,比如如果你使用yml文件,看看格式是否有问题尤其是冒号后会有一个空格,propretitiesde的话注意url路径有无书写错误之类的,然后再进行maven的clean操作,从新启动