SpringCloud启动失败

***************************
APPLICATION FAILED TO START
***************************

Description:

The bean 'eurekaRegistration', defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$EurekaClientConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.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

思考检查发现原来是依赖引入错误

 
    org.springframework.cloud
    spring-cloud-netflix-eureka-server

修改为:

 
    org.springframework.cloud
    spring-cloud-starter-netflix-eureka-server

改完之后启动简直不要太成功
SpringCloud启动失败_第1张图片

你可能感兴趣的:(报错,SpringCloud,eureka)