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

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

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

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

 



posted @ 2018-01-28 15:39  威流  阅读(11500)  评论(1编辑  收藏  举报