This happened when I use spring-boot-starter-parent 2.6.0, but 2.5.9 is ok

The dependencies of some of the beans in the application context form a cycle:

   eventManager (field private com.xxx.InfoService com.xxx.EventManager.infoService)
β”Œβ”€β”€β”€β”€β”€β”
|  infoService (field private com.xxx.BizService com.xxx.InfoService.bizService)
↑     ↓
|  bizService (field private com.xxx.InfoService com.xxx.BizService.infoService)
β””β”€β”€β”€β”€β”€β”˜

Comment From: livk-cloud

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.6-Release-Notes Take a look at the changelog of springboot 2.6.x

Comment From: snicoll

@1715640858 please review the release notes when upgrading to a new feature release of Spring Boot. This section is relevant to what is happening.

You can break the cycle by using ObjectProvider or @Lazy for instance. Or better yet by rearranging your infrastructure so that there isn't a cycle in the first place. If you have more questions, please follow-up on StackOverflow.

Comment From: 1715640858

@snicoll I'm sorry I didn't notice the notes before. Thanks a lot