問題描述
在微服務開發中遇到了一個服務已經下線很久,但 eureka 中卻顯示服務還在導致服務啟動注冊失敗的問題,啟動失敗日志如下:
org.springframework.beans.factory.BeanCreationNotAllowedException: 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!)
根本原因
eureka 未發現服務提供者已經下線
問題解決
手動強制下線服務
curl -v -X DELETE 192.168.56.138:28761/eureka/apps/MY-CONSTRUCTION/101.10.10.17:28114
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/195732.html
標籤:其他
