Spring Boot - Error creating bean with name 'dataSource' defined in class path resource

时间:2018-01-28 16:33:41   收藏:0   阅读:2890

看起来像最初的问题是与自动配置。

如果你不需要数据源,只需从自动配置过程中删除它:

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

 



评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!