Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过Spring cloud cli启动Groovy应用程序时Spring cloud Consor配置出现问题_Spring_Spring Cloud Config_Spring Cloud Consul - Fatal编程技术网

通过Spring cloud cli启动Groovy应用程序时Spring cloud Consor配置出现问题

通过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

我正在探索Consor的发现和配置服务器。我已经添加了所需的依赖项,并设置了yml文件。当我尝试使用spring cloud cli spring run启动服务器时。我无法解决以下错误。感谢您的帮助

错误: 组件需要名为“configServerRetryInterceptor”的bean,但找不到该bean

我试图定义这个bean,但当我通过SpringCloudCLI启动应用程序时,它无法识别它

请参阅下面的代码


此问题是由于拉取了不需要的依赖项。 显式禁用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