摘要: 原因: @EnableAutoConfiguration 这个注解会把配置文件号中的数据源全部都自动注入,不会默认注入一个,当使用其他数据源时再调用另外的数据源。 解决方法: 1.注释掉这个注解 2.通过如下的方式禁止springboot自动注入多个数据源 @SpringBootApplicatio 阅读全文
posted @ 2017-10-09 17:26 简笔话_Golden 阅读(4635) 评论(0) 推荐(0) 编辑