开启retry机制

This commit is contained in:
lxu75
2025-05-20 18:22:23 +08:00
parent 9696c65f1e
commit e090a1e82f

View File

@@ -6,6 +6,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;
@@ -16,6 +17,7 @@ import com.volvo.common.feign.annotation.EnableVolvoFeignClients;
@EnableScheduling
@MapperScan({"com.volvo.ai.analytic.center.mapper"})
@EnableDiscoveryClient
@EnableRetry
public class AiAnalyticCenterServiceApplication {
public static void main(String[] args) {