[Solved] BeanCreationNotAllowedException Error: Error creating bean with name ‘rabbitConnectionFactory‘

org.springframework.beans.factory.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!)

Once the project reports this error, in most cases, the sub paths in the control layer are repeated, and non unique channels appear during compilation, as shown below

After copying, the sub path of the control layer access path has been changed accordingly

Read More: