Error creating bean with name 'eurekaRibbonClientConfiguration'

出现 Error creating bean with name ‘eurekaRibbonClientConfiguration’

Error creating bean with name ‘eurekaRibbonClientConfiguration’: Unsatisfied dependency expressed through field ‘eurekaConfig’; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘eurekaInstanceConfigBean’: 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!)

根据错误信息可以得出是无法正确创建名为“eurekaRibbonClientConfiguration”的bean,不合适的eurekaConfig破坏了eurekaInstanceConfigBean的单例模式。
Error creating bean with name 'eurekaRibbonClientConfiguration'
这里应该去检查eurekaConfig,
访问eureka
Error creating bean with name 'eurekaRibbonClientConfiguration'
可以看到eureka服务器并无异常
而且各个微服务注册成功,且运行正常,再出现Error之前也并未修改过相关配置,因此考虑是服务缓存导致。
Error creating bean with name 'eurekaRibbonClientConfiguration'
尝试重启Eureka服务器,并可能需要重启相关部分为服务模块。
即可正常访问,这种Error很难预防,只能在开发过程中尽可能规范化操作。即时重启相关服务