添加retry支持

This commit is contained in:
wangkang
2017-07-29 10:18:34 +08:00
parent 309ad45129
commit f6285dc743
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -44,6 +44,11 @@
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- spring-retry -->
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
</dependency>
<!-- jolokia-core -->
<dependency>
<groupId>org.jolokia</groupId>
@@ -12,6 +12,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Primary;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.client.RestTemplate;
@@ -29,6 +30,7 @@ import com.fasterxml.jackson.databind.module.SimpleModule;
@ComponentScan(basePackages = { "com.egridcloud" })
@EnableAsync
@RefreshScope
@EnableRetry
public class BaseApplication {
/**