简体   繁体   English

如何在Spring中配置@RetryTransaction?

[英]How to config @RetryTransaction in Spring?

I get this error : 我收到此错误:

Getting “Deadlock found when trying to get lock; try restarting transaction”

I'm trying to resolve it using annotation RetryTransaction with @Transactionnal. 我正在尝试使用带有@Transactionnal的注解RetryTransaction来解决它。

But the annotation cannot be resolved to a type. 但是注释不能解析为类型。

What is the config to set in spring-config.xml to make it work ? 在spring-config.xml中设置什么配置才能使其正常工作? or maybe supplementary dependecies to install ? 还是可能要安装其他附属物?

Googling a bit reveals that the annotation you mentioned is not from spring, but someone else produced it. 仔细搜索一下,可以发现您提到的注释不是来自春季,而是由其他人制作的。

You can get the maven artefact that contains it from here http://mvnrepository.com/artifact/org.dellroad/dellroad-stuff/1.0.659 您可以从此处http://mvnrepository.com/artifact/org.dellroad/dellroad-stuff/1.0.659获得包含它的Maven人工制品。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM