sring-retry
spring-retry 包引入1
2
3
4
5
6
7
8
9
10
11
12
13maven
<!-- https://mvnrepository.com/artifact/org.springframework.retry/spring-retry -->
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
<version>1.2.5.RELEASE</version>
</dependency>
gradle
// https://mvnrepository.com/artifact/org.springframework.retry/spring-retry
compile group: 'org.springframework.retry', name: 'spring-retry', version: '1.2.5.RELEASE'
springmvc启动加载1
2
3
4
5
6
7
8
9
@SpringBootApplication
@EnableRetry
public class DemoApp {
public static void main(String[] args) {
SpringApplication springApplication = new SpringApplication(DemoApp.class);
springApplication.run(args);
}
}
相关文章