在非Spring应用中使用Spring Retry呢?

huangapple go评论65阅读模式
英文:

Spring Retry in non-spring apps?

问题

我想知道Spring Retry框架是否可以用在普通的Java应用程序中?
我想在传统的非Spring应用程序中使用重试框架。

这可以做到吗?我看到大多数在线文章都在谈论在Spring/Spring Boot应用程序中使用它。

如果可以的话,是否有使用它的示例?

谢谢。

英文:

I was wondering if Spring Retry framework can be used in a regular Java application?
I'd like to use the retry framework in a legacy non-Spring application.

Can this be done? I've seen most of the articles online talking about using it in a Spring/Spring Boot application.

If it can be, are there any examples of using it?

Thanks..

答案1

得分: 0

我在https://github.com/spring-projects/spring-retry找到了答案,并且我创建了一个小的示例项目,展示了你可以在非基于Spring的应用程序中使用它。

英文:

I found my answer at https://github.com/spring-projects/spring-retry and I made a small example project which shows you can use it outside of Spring based applications.

huangapple
  • 本文由 发表于 2020年5月29日 22:38:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/62088454.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定