资讯详情

Failed to configure a DataSource: ‘url‘ attribute is not specified and no em

spring boot启动报错: Failed to configure a DataSource: 'url' attribute is not specified ...

原因是数据库在项目中被引用(例如)mybatis,tkmapper等),但没有配置数据库连接。

最简单的解决方案:

在boot启动类添加注释:

@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)

标签: tk261型铠装液位变送器

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台