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
@Scheduled(name = "test") public class TestJob implements Runnable { @Override @Tran public void run() { } }
如代码所示,@Tran注解无法启用事务。
@Tran
The text was updated successfully, but these errors were encountered:
确实如此。。。你换种方式:
//注解在组件的方法上 @Component public class JobBean { @Tran @Scheduled(fixedRate = 1000 * 3) public void job11(){ System.out.println("我是 job11 (3s)"); } }
Sorry, something went wrong.
No branches or pull requests
如代码所示,
@Tran
注解无法启用事务。The text was updated successfully, but these errors were encountered: