报错信息如下:
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.
且bootstrap.yml 也无法正常加载淡绿色的图标,在编辑时无代码提示。
解决:
检查 pom.xml:
将其修改为:
然后刷新 maven 依赖,eureka 启动成功。