diff --git a/udf-starter-core/pom.xml b/udf-starter-core/pom.xml index 4451a32..c536f12 100644 --- a/udf-starter-core/pom.xml +++ b/udf-starter-core/pom.xml @@ -44,6 +44,11 @@ spring-boot-configuration-processor true + + + org.springframework.retry + spring-retry + org.jolokia diff --git a/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java b/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java index d29518f..d88da3d 100644 --- a/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java +++ b/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java @@ -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 { /**