How Spring Boot Uses Three-Level Caching to Solve Circular Dependencies Circular dependencies in Spring are a common issue when two or more beans depend on each other. Spring can resolve singleton circular dependencies but only for property-based injection — not constructor injection. Spring uses a three-level caching mechanism to achieve...
Read More
How Spring Boot Actually Creates Beans — A Step-by-Step Walkthrough via finishBeanFactoryInitialization After a series of initialization steps in Spring Boot, the real process of bean creation begins in the finishBeanFactoryInitialization() method. This is the core of the Spring IoC container, where control over bean instantiation shifts from the user...
Read More
Understanding IoC and AOP in refresh(): How BeanFactory and BeanDefinition Power Your Application
Read More
Spring Boot refresh() Function: invokeBeanFactoryPostProcessors in Action
Spring Boot has largely replaced the traditional XML-based Spring configuration and has become the dominant framework in many modern software and Internet companies.
Read More
Inside Spring: A Friendly Walkthrough of the Startup Process
This guide breaks down how Spring Framework 6.x starts up using traditional XML configuration. We’ll walk through the ClassPathXmlApplicationContext flow and focus on how beans are loaded, the refresh process, and how Spring handles circular dependencies with its three-level cache.
Read More