We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.6.0
在多数据源的情况下,使用@DSTransactional失效,使用的DataSourceContextHolder.setDataSource(等价于DynamicDataSourceContextHolder.push)切的数据源。方法上使用注解@DSTransactional,数据源可以正常切换,但是事务不生效,报错不会回滚
The text was updated successfully, but these errors were encountered:
DataSourceContextHolder.setDataSource 为什么我会自定义一个同功能的类,因为这个项目使用DynamicDataSourceContextHolder.push不成功,但是另一个又可以成功,不知道是不是哪里冲突了,所以就重新定义了一个。但是不管是哪个项目,@DSTransactional都不起作用
Sorry, something went wrong.
No branches or pull requests
版本号:
3.6.0
问题描述:
在多数据源的情况下,使用@DSTransactional失效,使用的DataSourceContextHolder.setDataSource(等价于DynamicDataSourceContextHolder.push)切的数据源。方法上使用注解@DSTransactional,数据源可以正常切换,但是事务不生效,报错不会回滚
错误截图:
友情提示:
The text was updated successfully, but these errors were encountered: