首页 > 其他 > 详细

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

时间:2018-11-12 10:12:59      阅读:296      评论:0      收藏:0      [点我收藏+]
项目启动报错问题:
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’

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!