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
发现 ShiroConfig 这个系统配置会引起 spring 的 @transactional 声明式事务失效 。 多次测试 但是没找到具体原因
The text was updated successfully, but these errors were encountered:
已经找到原因了 , 因为 Shiro 的ShiroFilterFactoryBean实现了FactoryBean接口,所以它会提前被初始化 , 在 ShiroFilter 中有注入了service 这里我没有像作者一样直接使用 mapper ,导致service 没有被spring的 容器注入 ,自然没办法使用 aop 最终导致 在使用这个 service 的声明式事务失效 。
Sorry, something went wrong.
No branches or pull requests
发现 ShiroConfig 这个系统配置会引起 spring 的 @transactional 声明式事务失效 。 多次测试 但是没找到具体原因
The text was updated successfully, but these errors were encountered: