org.springframework.boot
spring-
《一线大厂Java面试题解析+后端开发学习笔记+最新架构讲解视频+实战项目源码讲义》
【docs.qq.com/doc/DSmxTbFJ1cmN1R2dB】 完整内容开源分享
boot-maven-plugin
然后创建一个测试重试的TestRetryService.java:
/**
-
@Author : JCccc
-
@CreateTime : 2019/8/16
-
@Description :
**/
public interface TestRetryService {
int dignifiedTest(int code) throws Exception;
}
然后是TestRetryServiceImpl.java:
import com.mail.elegant.service.TestRetryService;
import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Recover;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import java.time.LocalTime;
/**
-
@Author : JCccc