-
Notifications
You must be signed in to change notification settings - Fork 540
Description
Is your feature request related to a problem? Please describe.
We used spring-retry library together with Spring Cloud Consul Config in our project.
In Spring 7 spring-retry library was merged with spring-core so we removed spring-retry from the main project dependencies. However Retry functionality stopped working after that. We analyzed ConsulRetryBootstrapper in Spring Cloud Consul 5.0 and it seems that this class still relies on presence of spring-retry library and @retryable annotation although this annotation is always present now (but package is different).
public class ConsulRetryBootstrapper implements BootstrapRegistryInitializer {
static final boolean RETRY_IS_PRESENT = ClassUtils.isPresent("org.springframework.retry.annotation.Retryable",
null);
@Override
public void initialize(BootstrapRegistry registry) {
if (!RETRY_IS_PRESENT) {
return;
}
So it's not possible to use Retry feature in Spring Cloud Consul Config if we don't have spring-retry which is obsolete now.
Describe the solution you'd like
The solution is to create another ConsulRetryBootstrapper (or update existing one) that will use built-in retry component in Spring Framework 7 so we don't need spring-retry library after that.