Invocation of destroy method failed on bean with name ‘XXXX’
Posted lifuhei
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Invocation of destroy method failed on bean with name ‘XXXX’相关的知识,希望对你有一定的参考价值。
项目启动报错问题:
Invocation of destroy method failed on bean with name ‘scopedTarget.eurekaClient‘: 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!)
解决方法,在pom文件中增加以下依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
以上是关于Invocation of destroy method failed on bean with name ‘XXXX’的主要内容,如果未能解决你的问题,请参考以下文章
Flutter 运行结束于:Could not create an instance of type org.gradle.invocation.DefaultGradle
git 出现了 Invocation failed Unexpected end of file from server
git 出现了 Invocation failed Unexpected end of file from server
git 出现了 Invocation failed Unexpected end of file from server
git 出现了 Invocation failed Unexpected end of file from server
写chrome插件TypeError: Error in invocation of tabs.create(object createProperties