首页 > 其他 > 详细

Error creating bean with name 'eurekaAutoServiceRegistration'

时间:2018-05-15 20:25:50      阅读:4415      评论:0      收藏:0      [点我收藏+]
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'

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

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