-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
事件追踪数据源和mybatis数据源冲突请问如何解决 #1
Comments
怎么个冲突法呀,贴错误信息呀 |
配置: 业务查询mybatis默认数据源成是log数据源 /**
问题:无论我如何调整业务数据源都是eventlog数据源 |
我觉得你这个跟我的starter没关系,我只需要引用一个数据源,我不创建数据源,你就算把我的starter去掉,你配置多个数据源,你的项目还是有问题,问题根据在于你那个mybatis-plus如何指定对应的数据源,因为数据源都是DataSource,它那边注入要根据名称来注入即可,不根据名字的话多个数据源存在,注入就有问题了 你这边创建mybatis的SqlSessionFactory的时候指定注入的数据源应该就可以: |
谢谢
|
No description provided.
The text was updated successfully, but these errors were encountered: