mirror of
https://gitee.com/wangkang/udf.git
synced 2026-11-12 18:43:37 +00:00
添加retry支持
This commit is contained in:
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user