Skip to content
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

在@Transactional的方法中切换数据源失败 #11

Closed
ZhangKe4042602 opened this issue May 8, 2019 · 1 comment
Closed

在@Transactional的方法中切换数据源失败 #11

ZhangKe4042602 opened this issue May 8, 2019 · 1 comment

Comments

@ZhangKe4042602
Copy link

数据源1是只读的权限,数据源2是读写的权限。在@transactional的方法中切换数据,数据源切换的注解是在@service上添加的,并且注解切换数据源的操作也执行了,并且日志显示进行切换了。但是在执行sql时数据源还是没有切换。

@helloworlde
Copy link
Owner

README 最后的注意说了,当方法有 @Transactional 注解时无法切换数据源

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants