Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. M

2020-03-10 16:02:29.595 ERROR 16026 — [ restartedMain] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: 在这里插入图片描述
Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. M
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

解决方案:
在application.yml配置文件中添加数据库的配置信息