其实@Primary注解的实例优先于其他实例被注入。
第一个方法是默认的 数据源,所以默认优先注入
@Primary 标签的使用
原文:https://www.cnblogs.com/mfser/p/9297861.html