Open odedia opened 6 days ago
When add dependency spring-cloud-services-starter-config-client
, threre's RetryTemplate
in your project. So SpringAiRetryAutoConfiguration
start run.
@AutoConfiguration
@ConditionalOnClass(RetryTemplate.class)
@EnableConfigurationProperties({ SpringAiRetryProperties.class })
public class SpringAiRetryAutoConfiguration {}
For the time being, I think you can make the project keep running normally by add spring-ai-retry
dependency.
To fix it, the @ConditionalOnClass(RetryTemplate.class)
might need to be replaced with another class relevant to spring-ai-retry
.
When running an application with both Spring AI and
spring-cloud-services-starter-config-client
as dependencies, the application fails to boot with the error below:Steps to reproduce: Although this fails when deploying to cloud foundry environment, it also fails when just having the dependency locally, so an easy way to check for it would be to add the dependency below to the pom.xml and try to boot:
You can use the genai-service in this path for reference, just add the dependency above and try to boot. https://github.com/odedia/spring-petclinic-microservices/tree/main/spring-petclinic-genai-service
Thanks.