启动zuul时:The bean 'proxyRequestHelper', defined in class path resource

报错信息如下:

***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'proxyRequestHelper', defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$NoActuatorConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/netflix/zuul/ZuulProxyAutoConfiguration$EndpointConfiguration.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
Process finished with exit code 1

原因是SpringCloud与SpringBoot版本不一致。
SpringBoot版本为2.1.1.RELEASE;SpringCloud版本为Finchley.RELEASE
后将SpringCloud版本改为Greenwich.RC2后,成功启动。配置如下:

 
        1.8
        
        Greenwich.RC2
    


 
        org.springframework.boot
        spring-boot-starter-parent
        2.1.1.RELEASE
        
    

你可能感兴趣的:(SpringCloud)