springboot启动报:Error creating bean with name 'dataSource' defined in class path resource

需要在启动类的@EnableAutoConfiguration或@SpringBootApplication中添加exclude = {DataSourceAutoConfiguration.class},排除此类的autoconfig。启动以后就可以正常运行。 
posted @ 2019-06-17 15:47  眸色  阅读(11683)  评论(0编辑  收藏  举报