圖靈學(xué)院六期java架構(gòu)師
2023-04-15 09:44 作者:邱邱邱2585093180 | 我要投稿
// 設(shè)置重試策略,主要設(shè)置重試次數(shù)??SimpleRetryPolicy retryPolicy = new SimpleRetryPolicy(maxRetryTimes, exceptionMap);??retryTemplate.setRetryPolicy(retryPolicy);??retryTemplate.setBackOffPolicy(backOffPolicy);??Boolean execute = retryTemplate.execute(??????//RetryCallback??????retryContext -> {
標(biāo)簽: