Spring Framework Integration with MyBatis: Core Implementation Mechanisms
Circular Dependency Resolution in Spring
Understanding Circular Dependencies
Circular dependencies occur when two or more beans depend on each other, creating a dependency cycle. Spring handles this through a three-level caching mechanism.
Early AOP and Caching Mechanism
The earlySingletonObjects cache (second-level) stores partially constructe ...
Posted on Mon, 31 Aug 2026 16:19:47 +0000 by kiwiwilliam
Understanding IActionFilter in ASP.NET Core Web API
This article provides an overview of IActionFilter in ASP.NET Core Web API, focusing on its execution order, attribute usage, and registration methods. The environment used is VS2019 with ASP.NET Core 3.1.
Execution Order of IActionFilter
The filter is called after the controller's constructor is executed.
The OnActionExecuting method of IAct ...
Posted on Tue, 25 Aug 2026 16:21:48 +0000 by Xurion
Mastering Spring 5: From Core IoC to Reactive Web with WebFlux
Inversion of Control Container
Underlying Concepts
IoC shifts object creation and wiring responsibilities from application code to the container. The container relies on three main techniques: XML parsing, the factory pattern, and Java reflection. At startup, metadata (XML or annotations) is read, bean definitions are parsed, and the container ...
Posted on Mon, 24 Aug 2026 16:45:58 +0000 by moreshion
Building a Mini Vue: Implementing Observer, Watcher, and Compiler
Vue's source code implements dependency collection using the Observer pattern. It involves three main classes:
Dep: Acts as the observable target. Every data property has a Dep instance containing a subs queue (short for subscribers) that holds all Watcher instances depending on the data. When data changes, dep.notify() is called to inform all ...
Posted on Mon, 24 Aug 2026 16:25:35 +0000 by rcoursey
Internal Mechanics of the Spring IoC Container and Bean Lifecycle
Spring’s Inversion of Control (IoC) mechanism shifts object instantiation, dependency resolution, and lifecycle management from application code to a centralized container. The architecture relies heavily on metadata parsing, Java reflection, and a series of lifecycle callbacks.
Core Container Abstractions
The framework exposes two primary inte ...
Posted on Fri, 21 Aug 2026 16:38:05 +0000 by TheRealPenguin
Managing Regions Across Multiple Windows in Prism.WPF
When working with Prism.WPF and dependency injection containers like Unity, developers commonly register the primary application shell within the CreateShell method override. This process establishes the initial IRegionManager instance associated with the main window.
protected override Window CreateShell()
{
return Container.Resolve<Ma ...
Posted on Fri, 21 Aug 2026 16:28:07 +0000 by aleczapka
Core Annotations for Bean Management in Spring
Spring provides several annotations to declare components as managed beans with in the container.
@Controller: Designates a class as a Spring MVC controller, typically used in conjunction with @RequestMapping.
@Controller
@RequestMapping("user")
public class UserController {
@GetMapping("get/{id}")
public String get ...
Posted on Thu, 20 Aug 2026 16:09:43 +0000 by mgm_03
Eliminating DAO Implementation Classes with MyBatis-Spring MapperScannerConfigurer
MyBatis-Spring provides a powerful feature that eliminates the need for manual DAO implementation classes. Instead of creating concrete implementations, the framework can automatically convert mapper intefraces into Spring beans through MapperFactoryBean.
When working with individual mapper interfaces, the traditional approach requires explicit ...
Posted on Wed, 19 Aug 2026 16:06:33 +0000 by stilgar
Spring Framework: Inversion of Control and Aspect-Oriented Programming
The Spring ecosystem provides comprehensive infrastructure for building Java applications. It primarily consists of:
Spring Framwork - The core framework
Spring Boot - Adds auto-configuration capabilities that initialize resources based on conventions during startup
Spring MVC - Web framework for building RESTful applications
Spring Cloud - Di ...
Posted on Tue, 18 Aug 2026 16:26:03 +0000 by bahewitt
Spring Boot Request Handling, Unified Responses, and Layered Decoupling
Web Request and Response Mechanisms
In a Browser/Server (B/S) architecture, clients interact with backend applications via HTTP protocols. When a request reaches the embedded Tomcat server in a Spring Boot application, it is initially processed by the core DispatcherServlet. This front controller routes the incoming request to the appropriate h ...
Posted on Tue, 18 Aug 2026 16:16:04 +0000 by darklight