报错: 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
原因是没有连接到数据库。
解决:检查,修改配置文件。
重点排查路径,配置文件是否正确。自己的项目是通过nacos配置的,最后检查的时候是配置文件的dataid应该是pro,但是写的是dev,导致找不到配置文件启动报错。