通过Spring cloud cli启动Groovy应用程序时Spring cloud Consor配置出现问题
我正在探索Consor的发现和配置服务器。我已经添加了所需的依赖项,并设置了yml文件。当我尝试使用spring cloud cli spring run启动服务器时。我无法解决以下错误。感谢您的帮助 错误: 组件需要名为“configServerRetryInterceptor”的bean,但找不到该bean 我试图定义这个bean,但当我通过SpringCloudCLI启动应用程序时,它无法识别它 请参阅下面的代码通过Spring cloud cli启动Groovy应用程序时Spring cloud Consor配置出现问题,spring,spring-cloud-config,spring-cloud-consul,Spring,Spring Cloud Config,Spring Cloud Consul,我正在探索Consor的发现和配置服务器。我已经添加了所需的依赖项,并设置了yml文件。当我尝试使用spring cloud cli spring run启动服务器时。我无法解决以下错误。感谢您的帮助 错误: 组件需要名为“configServerRetryInterceptor”的bean,但找不到该bean 我试图定义这个bean,但当我通过SpringCloudCLI启动应用程序时,它无法识别它 请参阅下面的代码 此问题是由于拉取了不需要的依赖项。 显式禁用spring云配置和spring
此问题是由于拉取了不需要的依赖项。 显式禁用spring云配置和spring云发现修复了它
spring:
cloud:
config:
enabled: false
discovery:
enabled: false
serviceId: CONFIG
eureka:
client:
register-with-eureka: false
fetch-registry: false
spring:
cloud:
config:
enabled: false
discovery:
enabled: false
serviceId: CONFIG
eureka:
client:
register-with-eureka: false
fetch-registry: false