SpringBoot2 多数据源自动切换,mybatis github地址:https://github.com/ag2010/springboot-admin/tree/master/spring-boot-mybatis-multiple-datasource 参考资料:https://www.jianshu.com/p/5165dace5fc3