Singleton bean creation not allowed while singletons of this factory are in destruction (Do not requ
错误详情:
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!)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:216) [spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:283) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:253) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:177) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:140) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:399) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:991) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:958) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.cloud.context.named.NamedContextFactory.destroy(NamedContextFactory.java:76) [spring-cloud-context-1.2.2.RELEASE.jar:1.2.2.RELEASE]at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:272) [spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:583) [spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:555) [spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:959) [spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:516) [spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:966) [spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1032) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1008) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:958) [spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE]at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:750) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE]at com.gxs.springcloud.DeptConsumerFeignApp.main(DeptConsumerFeignApp.java:24) [classes/:na]at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_201]at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_201]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_201]at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_201]at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.5.19.RELEASE.jar:1.5.19.RELEASE]
产生原因:可能是出现了端口占用!
Singleton bean creation not allowed while singletons of this factory are in destruction (Do not requ相关推荐
- 解决spring coud打包报Singleton bean creation not allowed while singletons of this factory are in destruct
解决spring coud打包报Singleton bean creation not allowed while singletons of this factory are in destruct ...
- spring使用Test测试时报错:Singleton bean creation not allowed while singletons of this factory are in destru
一.问题描述 利用Test测试任务时时,启动服务抛出异常:Singleton bean creation not allowed while the singletons of this factor ...
- Error creating bean with name 'eurekaClientConfigBean': Singleton bean creation not allowed!
做一个积极的人 编码.改bug.提升自己 我有一个乐园,面向编程,春暖花开! 今天发现一个错误,简单记录一下,运行一个项目一直启动不了,发现控制台报错了. 首先说明一下这是一个Spring boot ...
- 当singleton Bean依赖propotype Bean,可以使用在配置Bean添加look-method来解决
在Spring里面,当一个singleton bean依赖一个prototype bean,因为singleton bean是单例的,因此prototype bean在singleton bean里面 ...
- Initialization of bean failed; nested exception is org.springframework.beans.factory.: 错误分析
按照之前调试成功的两个表关联,加入更多的表,今天加入一个表,就出现以下错误 Initialization of bean failed; nested exception is org.springf ...
- Java Spring singleton bean的创建源代码
Created by Wang, Jerry, last modified on Aug 15, 2016
- Spring Destroying singletons ... root of factory hierarchy 问题【已解决】
问题 Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@13d ...
- 物联网安全解决方案_如何设计具有安全性的自制物联网解决方案
物联网安全解决方案 You are a tinkerer. You want to build things, which you do at home in your garage. You dre ...
- Spring IOC 容器源码分析 - 创建单例 bean 的过程
1. 简介 在上一篇文章中,我比较详细的分析了获取 bean 的方法,也就是getBean(String)的实现逻辑.对于已实例化好的单例 bean,getBean(String) 方法并不会再一次去 ...
最新文章
- centos7 python3安装numpy_Centos7安装python3、numpy、scipy、matplotlib、pandas等
- 从超链接调用ActionScript
- java高级数据类型_最新精品JAVA高级备课完美版——Java基本数据类型.pdf
- 单片机与普通微型计算机不同在于,单片机与普通微型计算机的不同之处
- oracle绑定变量过多,oracle - 在SQL Plus中使用绑定变量并返回多行? - 堆栈内存溢出...
- chatbot1_2 RNN简单实现
- java的equals方法_Java Date equals()方法与示例
- web前端学习之HTML
- Job 存储和持久化 (第三部分)
- html 控件 怎么获取id
- postman 字符串中有冒号_【接口测试】Postman入门09 Postman获取HTTP请求
- Oracle 查找并删除表中的重复记录
- php开启filtervar_PHP如何使用filter_var()函数?(代码示例)
- yii2 asset资源 basePath,baseUrl,sourcePath
- vs2013编译驱动错误-Inf2Cat,signability test failed
- GitHub中文排行榜,帮助你发现高分优秀中文项目
- 2022深圳杯C题思路解析
- JavaWeb——什么是Session及Session的用法
- 蛋白质组学数据分析——(1)原理
- matlab已知随机样本求总体均值与方差的矩估计值(例子应用)