奇葩的Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
程序员文章站
2022-06-23 22:39:36
启动springboot的时候莫名其妙出现这个错误,我properties里面也没配置数据源啥的,但就是出现这个错误 解决方法: 在启动类上加@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class}) 即在@SpringB ......
启动springboot的时候莫名其妙出现这个错误,我properties里面也没配置数据源啥的,但就是出现这个错误
解决方法:
在启动类上加@springbootapplication(exclude= {datasourceautoconfiguration.class})
即在@springbootapplication上加(exclude= {datasourceautoconfiguration.class})
其他因为数据源的问题出现的这个错误网上好多,这里不赘述。
推荐阅读
-
springboot启动报错Failed to configure a DataSource: 'url' attribute is not specified
-
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
-
奇葩的Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
-
SpringBoot 2.0 报错: Failed to configure a DataSource: 'url' attribute is not specified and no embe
-
springboot启动报错Failed to configure a DataSource: 'url' attribute is not specified
-
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
-
奇葩的Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
-
SpringBoot 2.0 报错: Failed to configure a DataSource: 'url' attribute is not specified and no embe