BeanCreationNotAllowedException:Error creating bean with name ‘rabbitConnectionFactory‘:
BeanCreationNotAllowedException: Error creating bean with name 'rabbitConnectionFactory': 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!)
My reason is: my timer class UnlockOverNumCrontab and DemoServiceImpl class at the same time @Autowired active injection of private IDemoService.
Solution: Add @Lazy annotation to the method name of the UnlockOverNumCrontab class, the default annotation is true
Read More:
- [Solved] BeanCreationNotAllowedException Error: Error creating bean with name ‘rabbitConnectionFactory‘
- [Solved] Rabbitmq injection failed, bean creation failed, error creating bean with name ‘rabbitconnectionfactory’‘
- [Solved] RabbitMQ Error: Error creating bean with name ‘rabbitConnectionFactory‘ defined in class path resource
- Error creating bean with name [How to Solve]
- [Solved] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xxx‘
- [Solved] ssm Error: Error creating bean with name ‘employeeController’: Injection of autowired dependencies failed
- [Solved] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- Error creating bean with name ‘adminMapper‘ Injection of resource dependencies failed
- [Solved] Spring AOP Error creating bean with name
- Spring Project Error: Error creating bean with name [How to Solve]
- [Solved] BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans‘
- [Solved] Error creating bean with name ‘accountService‘: Unsatisfied dependency expressed through field
- SpringCloud: Error creating bean with name ‘configurationPropertiesBeans‘
- [Solved] seata:Error creating bean with name ‘globalTransactionScanner‘ defined in class path resource
- [Solved] Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource…
- [Solved] Error creating bean with name ‘mappingJackson2HttpMessageConverter‘ defined in class path resource
- [Solved] Error creating bean with name ‘fileVisitController‘ defined in file
- Springboot integration shiro error: UnsatisfiedDependencyException: Error creating bean with name ‘getShiroFilterFact
- [Solved] Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource…
- [Solved] Error creating bean with name ‘sqlSessionFactory‘ defined in class path resource