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

(Do not request a bean from a BeanFactory in a destroy method implementation!)相关推荐

  1. Invocation of destroy method 'close' failed on bean with name 'sqlSession'

    问题解决 配置文件中添加这个属性: scope="prototype"的bean容器在接受到该类型的对象的请求的时候,会每次都重新生成一个新的对象给请求方; scope=" ...

  2. Spring IOC 容器源码分析 - 创建单例 bean 的过程

    1. 简介 在上一篇文章中,我比较详细的分析了获取 bean 的方法,也就是getBean(String)的实现逻辑.对于已实例化好的单例 bean,getBean(String) 方法并不会再一次去 ...

  3. spring源码阅读(1/4) - Bean生成

    上午去缴了上次没带驾驶证的扣分罚款,最近在图书馆没事就看曾国藩家书,曾国藩说人要明强.光强没有用,你要明强.也就是说要强的有道理.曾国藩又说,做学问不能做死学问,做学问其实很重要的事就是能懂得孝悌,把 ...

  4. react(85)--error:Error creating bean with name ‘onlineStudyController‘:

    Error creating bean with name 'onlineStudyController': Singleton bean creation not allowed while sin ...

  5. 【spring容器启动】之bean的实例化和初始化(文末附:spring循环依赖原理)

    本次我们通过源码介绍ApplicationContext容器初始化流程,主要介绍容器内bean的实例化和初始化过程.ApplicationContext是Spring推出的先进Ioc容器,它继承了旧版 ...

  6. 异常将上下文初始化事件发送到类的侦听器实例_Spring的Bean实例化原理,这一次彻底搞懂了!...

    前言 之前分析了Spring XML和注解的解析原理,并将其封装为BeanDefinition对象存放到IOC容器中,而这些只是refresh方法中的其中一个步骤--obtainFreshBeanFa ...

  7. 这一次搞懂 Spring 的 Bean 实例化原理

    点击关注公众号,实用技术文章及时了解 来源:blog.csdn.net/l6108003/article/ details/106439525 前言 前两篇文章分析了Spring XML和注解的解析原 ...

  8. Spring 源码分析(七)--bean的加载详细分析

    一:缓存中获取单例bean 前面已经提到过,单例在Spring的同一个容器内只会被创建一次,后续再获取bean直接从单例缓存中获取,当然这里也只是尝试加载,首先尝试从缓存中加载,然后再次尝试从sing ...

  9. Spring源码之启动过程(四)—— Bean的实例化详解

    前面,我们把Bean的生命周期做了一个概述和梳理,为的是更深刻的理解容器启动及Bean的生命周期,最主要的是Bean的实例化过程,没有看过的,可以进去先看一下(文章链接:Spring源码之Bean的生 ...

最新文章

  1. Bash脚本教程之变量
  2. Access和sql server的语法区别
  3. 15个示例让你搞懂Linux中的cd命令
  4. java eml文件解析_java 解析 eml的源代码
  5. js中this的问题
  6. IP地址和子网划分学习笔记之《预备知识:进制计数》
  7. 基于发起源判断CSRF***的方法
  8. codeforces 597C (树状数组+DP)
  9. qpieslice 渐变效果_在IE9中使用CSS3 PIE的线性渐变不起作用,IE8可以
  10. fastdb中的位图应用
  11. 实施ERP系统需要注意哪些方面?
  12. .net core 的图片处理及二维码的生成及解析
  13. github Your account has been flagged.提示情况的解决办法
  14. unity urp 实现丝绸渲染
  15. el-table自定义排序
  16. 【计算机】联想拯救者Y7000安装win10后重启一直在转圈
  17. c语言调用鼠标驱动函数,鼠标驱动程序
  18. qichacha/知乎/国家统计局最新4级地区划/百度地图API获取经纬度/Google play app评论等分数据爬取
  19. mysql 查询条件不区分大小写
  20. 机器学习工程师需要了解的十种算法

热门文章

  1. 【JS】用户名格式要求(非正则实现)
  2. PID控制器改进笔记之七:改进PID控制器之防超调设定
  3. 2018腾讯视频春招提前批前端面试
  4. 【原创】PHP超时处理全面总结
  5. 多种方式实现web端截屏录屏
  6. Nordic 的自定义广播和动态广播实现(1)
  7. Unity delegate
  8. 敏捷开发绩效管理之一:序言及“敏捷开发是否考核个人”(绩效考核)
  9. hadoop-3.0.0完整版HA部署
  10. 网易视频云郭再荣:视频云服务的未来在于场景化