-
Notifications
You must be signed in to change notification settings - Fork 314
关于切换不成功问题 #17
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
Comments
我的没有xml |
Switch DataSource to [slave] in Method [List com.weiyin.streetlamp.menu.dao.MenuDao.listAll()] |
You can reference this document https://github.com/helloworlde/SpringBoot-DynamicDataSource/blob/master/Issues.md |
private final String[] QUERY_PREFIX = {"list"};
控制台打印
Switch DataSource to [slave] in Method [List com.weiyin.streetlamp.menu.dao.MenuDao.listAll()]
Restore DataSource to [master] in Method [List com.weiyin.streetlamp.menu.dao.MenuDao.listAll()]
但是查询的还是主库中的数据,我配置的一主一次从
The text was updated successfully, but these errors were encountered: