Error creating bean with name 'eurekaAutoServiceRegistration'

Posted 夏天的尾巴%

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error creating bean with name 'eurekaAutoServiceRegistration'相关的知识,希望对你有一定的参考价值。

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'的主要内容,如果未能解决你的问题,请参考以下文章

Error creating bean with name ‘requestMappingHandlerMapping‘

react(85)--error:Error creating bean with name ‘onlineStudyController‘:

Error creating bean with name 'eurekaAutoServiceRegistration'

Spring 报错:Error creating bean with name

Error creating bean with name

Error creating bean with name 'transactionManager'