报错信息:
error creating bean with name 'eurekaAutoServiceRegistration': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
在idea 启动的时候,程序在启动最后阶段,报错,大意是注册到eureka时失败了。
原因
- 本机上有相同的程序在运行,并且也是相同的名字已经注册到了eureka
解决方案
- 看一下,eureka 是否已经存在同名的服务注册了;如果有:把对应的程序 kill 掉即可;如果没有,那。。本人暂时还没遇到过(遇到再说)