完整异常信息
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
翻译
说明:
未能配置DataSource:未指定“url”特性,也无法配置任何嵌入的数据源。
原因:无法确定合适的驱动程序类别
解决方法
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
设置启动类注解,忽略数据源配置。