Parameter 0 of method orderSqlSessionFactory in com.config.MultipleDBConfig required a single bean, but 2 were found:
- orderDataSource: defined by method 'orderDataSource' in class path resource [com/config/MultipleDBConfig.class]
- crmDataSource: defined by method 'crmDataSource' in class path resource [com/config/MultipleDBConfig.class] Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed

坑:以上方式链接多数据源时,

在springboot1.x时  datasource上要在一个写数据源上标记@Primary为主数据源

而在springboot2.X时则不需要

最新文章

  1. Python体验(07)-图形界面之菜单
  2. PPTP(Point to Point Tunneling Protocol),即点对点隧道协议。
  3. Oracle中有个tkprof来格式化oracle的trace文件
  4. Selenium2+python自动化21-TXT数据参数化
  5. .NET String.Format 方法 线程安全问题
  6. 用Windows API函数(CreateFile/ReadFile/WriteFile/CloseHandle)完成文件拷贝程序(初级版)
  7. 使用ndk standalone工具链来编译某个平台下的库
  8. 权重随机算法的java实现
  9. FreeCodeCamp:Return Largest Numbers in Arrays
  10. Metadata是.NET平台的核心灵魂--(转载)
  11. [UI列表]LoopScrollRect无限滑动不卡顿
  12. vim 高级应用
  13. Spring再接触 Scope范围
  14. Confluence 6 查看你的许可证细节
  15. nginx+tomcat抵御慢速连接攻击
  16. Perl操作Oracle
  17. 量身打造自己的MyEclipse(多图)
  18. 【树】Unique Binary Search Trees
  19. PHP7 学习笔记(二)PHP5.9 升级到PHP7 遇到的一些坑的记录(php-fpm 图解)
  20. 图像BMP格式介绍

热门文章

  1. 《京东上千页面搭建基石——CMS前后端分离演进史》阅读笔记
  2. linux运维 技能 2018
  3. 代码审计和动态测试——BUUCTF - 高明的黑客
  4. Windows curl开启注意事项
  5. tornado多进程模式不同进程写不同日志
  6. R3300L Android相关的记录
  7. 运维笔记--Linux查找指定目录下包含某字符串的文件
  8. Python3基础 __file__ 查询模块的完整路径
  9. 关于linux新建用户并赋予文件夹权限和scp权限的问题
  10. mysql 得到指定时间段的日期