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

Error creating bean with name 'eurekaAutoServiceRegistration'

时间:2018-05-15 21:08:16      阅读:6432      评论:0      收藏:0      [点我收藏+]

标签:pre   erro   报错   creating   factor   AC   cto   eating   enc   

spring-boot项目不断重启,报错:
1 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!) 

 

解决方法:把pom.xml中的热部署注释掉:
1 <!-- 热启动 -->
2         <!-- <dependency>
3             <groupId>org.springframework.boot</groupId>
4             <artifactId>spring-boot-devtools</artifactId>
5             <scope>runtime</scope>
6         </dependency> -->

 

Error creating bean with name 'eurekaAutoServiceRegistration'

标签:pre   erro   报错   creating   factor   AC   cto   eating   enc   

原文地址:https://www.cnblogs.com/mySummer/p/9042549.html

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