码迷,mamicode.com
首页 > 其他好文 > 详细

Invocation of destroy method failed on bean with name ‘XXXX’

时间:2018-11-12 11:14:13      阅读:637      评论:0      收藏:0      [点我收藏+]

标签:文件   bean   creat   启动   enc   pid   nta   解决   except   

项目启动报错问题:
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’

标签:文件   bean   creat   启动   enc   pid   nta   解决   except   

原文地址:https://www.cnblogs.com/lifuhei/p/9944694.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!