Files
spring-boot-demo/core-beans/output/22-bean-method-cycle-failure-report.txt
T

21 lines
794 B
Plaintext

# A two-bean cycle written as @Bean methods: the report names the configuration class instead of a class file
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌─────┐
| clock defined in com.ankurm.corebeans.cycles.beanmethods.BeanMethodCycle
↑ ↓
| calendar defined in com.ankurm.corebeans.cycles.beanmethods.BeanMethodCycle
└─────┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.