Tagged articles

Lazy injection

2 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Jul 1, 2026 · Backend Development

Resolving AOP + IOC Circular Dependency Conflicts in Spring

The article explains why Spring's three‑level cache solves simple circular dependencies but fails for AOP‑enhanced beans, describes the timeline mismatch that causes BeanCurrentlyInCreationException, and presents tiered solutions including @Lazy injection, setter refactoring, early proxy processing, and architectural redesign.

AOPBeanCircular Dependency
0 likes · 14 min read
Resolving AOP + IOC Circular Dependency Conflicts in Spring
Java Tech Workshop
Java Tech Workshop
Jun 16, 2026 · Backend Development

How Spring’s Third‑Level Cache Resolves Circular Dependencies

The article explains Spring’s three kinds of circular dependencies, the role of the first, second, and third‑level caches in the DefaultSingletonBeanRegistry, how the third‑level cache works with AOP proxies, why constructor injection cannot be solved, the @Lazy workaround, and the hidden bugs and best‑practice recommendations.

AOPBean LifecycleCircular Dependency
0 likes · 12 min read
How Spring’s Third‑Level Cache Resolves Circular Dependencies