zul起動時:The bean'proxyRequestHelper',defined in class path resource

1315 ワード

エラーメッセージは次のとおりです.
***************************
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に変更する.RC 2後、正常に起動した.次のように構成されています.
 
        1.8
        
        Greenwich.RC2
    


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