Tagged articles
4 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 5, 2024 · Backend Development

How to Resolve Common Spring Boot Configuration Pitfalls and Circular Dependency Errors

This article explains why @Configuration classes can cause circular dependency and custom BeanPostProcessor issues in Spring Boot, and provides practical solutions such as enabling circular references, using static @Bean methods, and preferring constructor injection for reliable bean injection.

BeanPostProcessorJavacircular-dependency
0 likes · 6 min read
How to Resolve Common Spring Boot Configuration Pitfalls and Circular Dependency Errors
Code Ape Tech Column
Code Ape Tech Column
Mar 22, 2023 · Backend Development

Why the @Async Annotation Triggers BeanCurrentlyInCreationException in Spring Circular Dependencies

This article explains how Spring's @Async annotation interacts with circular dependencies, why it leads to BeanCurrentlyInCreationException, and provides detailed insights into AsyncAnnotationBeanPostProcessor, AOP proxy creation, the three‑level cache mechanism, and practical solutions to avoid the issue.

AsyncBeanPostProcessorcircular-dependency
0 likes · 12 min read
Why the @Async Annotation Triggers BeanCurrentlyInCreationException in Spring Circular Dependencies
Selected Java Interview Questions
Selected Java Interview Questions
Jan 15, 2022 · Backend Development

Key New Features in Spring Boot 2.6.0 Release

Spring Boot 2.6.0 introduces several important backend enhancements, including mandatory circular‑dependency detection, custom sanitizing rules, default Redis connection‑pool activation, WebTestClient MVC testing support, a new path‑matching strategy, enriched /info endpoint data, and various other improvements.

circular-dependencysanitizingspring-boot
0 likes · 7 min read
Key New Features in Spring Boot 2.6.0 Release
Java Backend Technology
Java Backend Technology
Nov 3, 2019 · Backend Development

Why Does Spring’s Circular Dependency Fail? Uncovering the Hidden Pitfalls

This article explains the atypical Spring circular‑dependency problem, distinguishes strong and weak dependencies, shows how @Configuration classes turn weak dependencies into strong ones, analyzes bean‑initialisation order, and offers a concrete rule to avoid unresolvable circular references.

backend-developmentcircular-dependencydependency-injection
0 likes · 13 min read
Why Does Spring’s Circular Dependency Fail? Uncovering the Hidden Pitfalls