锐单电子商城 , 一站式电子元器件采购平台!
  • 电话:400-990-0325

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

时间:2023-07-06 05:37:00 tk261型铠装液位变送器

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

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

最简单的解决方案:

在boot启动类添加注释:

@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)

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

相关文章