异常: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!)

2021-09-27 15:02:46.662 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - NglifeMessage[3, claim-server-hangup, org.springframework.context.support.AbstractApplicationContext:refresh, Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat]   
2021-09-27 15:02:47.199 [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@70ab80e3}] WARN  o.s.c.a.AnnotationConfigApplicationContext - NglifeMessage[3, claim-server-hangup, org.springframework.context.support.AbstractApplicationContext:refresh, Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ribbonClientConfiguration': Unsatisfied dependency expressed through field 'propertiesFactory'; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'propertiesFactory': 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!)]   
2021-09-27 15:02:47.226 [main] INFO  o.s.b.a.l.ConditionEvaluationReportLoggingListener - NglifeMessage[2, claim-server-hangup, org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener:logMessage, 

解决办法
————————————————
原文链接:https://blog.csdn.net/andwd/article/details/110327796

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐