腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Spring
Boot
@
Retryable
模拟
测试
、
、
如下所示: @Service IAccountService accountService; ... } 在Mockito
测试
中executorService.execute(reqDto); verify(executorServi
浏览 49
提问于2019-12-29
得票数 0
回答已采纳
1
回答
@
Retryable
在
Spring
-
boot
-gradle-plugin上不起作用
、
、
我正在尝试通过添加@
Retryable
在我的(
spring
boot
gradle plugin)应用程序中添加重试逻辑。到目前为止,我所做的是:classpath(group: 'org.springframework.
boot
', name: '
spring
-
boot
-starter-aop', version: '1.4.0.RELEASE')@Component
浏览 0
提问于2016-08-18
得票数 2
2
回答
在方法上有@
Retryable
注解的Mocked
Spring
@Service会因UnfinishedVerificationException而失败
、
、
、
、
我将
Spring
Boot
1.4.0.RELEASE与
spring
-
boot
-starter-batch、
spring
-
boot
-starter-aop和
spring
-retry一起使用 我有一个
Spring
Integration
测试
,它有一个在运行时被
模拟
的@Service。我猜这一定和
spring
-aop有关吧?如果我注释掉@Service中的所有@
Retryable
注释,然
浏览 0
提问于2016-09-06
得票数 2
2
回答
如何在春季重试@定时任务
、
、
、
、
ScheduledTask { @Scheduled(cron = "0 0 * * * *")或者有没有更好的重试@Scheduled任务的方法?
浏览 34
提问于2021-05-14
得票数 1
回答已采纳
1
回答
@
Retryable
with
Spring
@Transactional
、
、
</artifactId> <dependency> <artifactId>
spring
-
boot
-starter-aop</artifactId> </dependency> 在我的@
浏览 93
提问于2021-11-19
得票数 1
1
回答
可还原注释- Junit5 - Mockito -可能吗?
、
、
、
、
是否可以使用Junit 5 mockito编写单元
测试
以进行可还原的注释?interface downloadpdf{public string downloadpdffile(string remoteurl, string pdfname); 我尝试过引用站点,并发现使用<e
浏览 8
提问于2022-04-12
得票数 0
9
回答
Springboot @
retryable
不重试
、
、
、
、
@
Retryable
() <groupId>org.springframework.retry</groupId> <artifactId>
spring
-retry</artifactIdversion>1.1.2.RELEA
浏览 27
提问于2016-07-06
得票数 17
2
回答
用Java重试不使用
Spring
批处理
、
、
、
我有以下配置的
Spring
批处理作业:public Job myJob(Step step1, Step step2, Step step3) { return jobs.get(org.springframework.batch.core.step.item.FaultTolerantChunkProvider.read(FaultTolerantChunkProvider.java:105) ~[
spring
-batch-coreorg.springframework.batch.core.step.item.SimpleChunk
浏览 0
提问于2019-05-16
得票数 3
回答已采纳
1
回答
对
Spring
Boot
post请求进行排队
、
我正在使用
spring
boot
(2.2.2)通过触发一个机器人来访问和编辑一些excel表格,同时提供了一个API来查看数据,并且在查找有关排队任务的信息时遇到了困难。
浏览 251
提问于2020-01-15
得票数 0
回答已采纳
3
回答
Spring
重试:注释为@Recover未被调用的方法
、
、
、
我正在
测试
一次春季重试,但似乎没有调用恢复。试着让它发挥作用,但似乎是穷途末路。我传递给了“恢复无参数,Throwable,Exception”。> </dependency> <!artifactId>
spring
-
boot
-starter-actuator</artifactId>
浏览 3
提问于2018-05-14
得票数 8
回答已采纳
1
回答
如何在
spring
boot
中从application.properties文件中制作可配置的可重试maxAttempts和退避
、
、
、
、
下面的参数,尝试使其可配置 @Async("threadPoolTaskExecutor") compile ("org.springframework.
boot
:
spring
-
boot
-starter-aop") com
浏览 26
提问于2019-06-21
得票数 2
回答已采纳
1
回答
要实现断路器模式,
spring
hystrix和better哪个更好使用
、
我在
spring
boot
微服务中寻找
spring
hystrix和
retryable
之间的区别,因为两者都用于实现断路器pattern.Thanks。
浏览 15
提问于2021-01-06
得票数 0
1
回答
使用@
Retryable
方法时如何访问当前重试尝试
、
我正在使用基于注释的方法- @
Retryable
在
spring
boot
应用程序中进行重试。@
Retryable
(value = {DataAccessException.class, JpaSystemException.class}, maxAttempts = Integer.MAX_VALUE我试着用Java反射来做这件事-但使用此命令,我无法获
浏览 1
提问于2018-10-31
得票数 4
1
回答
Spring
Boot
@
Retryable
根据异常
、
、
、
我想知道关于
Spring
@
Retryable
注释的一些东西。我希望根据异常类型实现@
Retryable
maxAttemps计数,例如:@
Retryable
(value = ExceptionA.class, maxAttempts = 2)@
Retryable
(value = ExceptionB.class, maxAttempts= 5) 是否可以使用@
R
浏览 2
提问于2020-09-23
得票数 0
回答已采纳
2
回答
如何为
Spring
数据资源创建自定义重试逻辑?
、
、
、
、
我做了一个
测试
,从我的应用程序中删除了IP限制,然后在我的应用程序中导致了一个异常(作为例外)。当抛出异常时,我想要处理,这样我就可以触发一个任务来验证应用程序和服务器配置是否正确。driverClassName("com.microsoft.sqlserver.jdbc.SQLServerDriver")}
spring
.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServe
浏览 1
提问于2018-12-27
得票数 3
2
回答
在@Mock中使用SpringRunner
、
、
、
、
我读到,当使用@Mock时,它应该与@RunWith(MockitoJUnitRunner.class)一起使用,而对于@MockBean,它应该与@RunWith(SpringRunner.class)一起使用。@RunWith(MockitoJUnitRunner.class) // also work when @RunWith(SpringRunner.class) is used public class testS
浏览 7
提问于2021-03-19
得票数 0
1
回答
在
Spring
Retryable
中的所有尝试之前退出
、
、
我在
Spring
boot
中写了一个
Retryable
。它将重试5次,回退时间为5秒。如果满足某些条件,我也希望在5次迭代之前退出。就像是 @
Retryable
(value = {SomeException.class}, maxAttempts = 5, backoff = @Backoff(delay = 5000))void checkForProcessed() throws SomeException { //c
浏览 19
提问于2020-09-14
得票数 1
回答已采纳
2
回答
Springboot @
Retryable
包含多个异常
、
、
我已经将@
Retryable
放在了接口方法上,现在我需要包含多个异常才能重试。代码: include = { SomeException.class, SomeOtherException.class
浏览 0
提问于2018-04-11
得票数 2
回答已采纳
1
回答
使用从外部系统调用的api进行
spring
模拟
mvc
测试
、
、
我有一个api(API 1),它正通过MockMvc.When被存根,我通过这个
模拟
对象发布到这个API上,一个请求传出到外部系统,它反过来调用我系统的api (API 2)。
浏览 27
提问于2018-12-19
得票数 1
回答已采纳
2
回答
Spring
@
Retryable
-如何在调用时进行日志记录?
、
、
我在
Spring
Boot
1.5.9.RELEASE中使用compile 'org.springframework.retry:
spring
-retry:1.2.2.RELEASE'。配置为重试我的方法,它工作正常: @
Retryable
(value = { IOException.class }, maxAttempts = 5, backoff = @Backoff(delay
浏览 0
提问于2018-03-02
得票数 23
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券