本文详述了在启动Spring Boot项目时遇到'Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource'的问题,从复现问题、分析原因到解决问题的过程。问题出在缺少数据源依赖及配置文件的错误。通过引入相关依赖并修正配置文件,成功解决了项目启动问题。
***************************
APPLICATION FAILED TO START
***************************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: