Tag: Tutorial
14 articles
IoC Container System: Bean Lifecycle and PostProcessor De...
Detailed explanation of Spring IoC container architecture, complete Bean lifecycle, and execution timing of BeanPostProcessor and BeanFactoryPostProcessor.
FactoryBean and BeanFactory Details and BeanPostProcessor
In-depth explanation of the differences between FactoryBean and BeanFactory in Spring, lazy loading mechanism of beans, and usage of BeanPostProcessor and BeanFactoryPostProcessor post-processors.
IoC Basics: Pure Annotation Mode and SpringConfig Configu...
Detailed introduction to Spring pure annotation configuration including usage of @Configuration, @ComponentScan, @Bean, @PropertySource annotations and Web environment configuration.
IoC Basics: XML and Annotation Combined Configuration
Explaining Spring's XML and annotation combined configuration mode, including the correspondence between annotations and XML tags, and usage of dependency injection annotations like @Autowired, @Qu...
IoC Basics: Pure XML Startup and Bean, DI Injection Details
Detailed explanation of Spring IoC configuration in pure XML mode including three ways to create Beans, lifecycle, scope, and XML configuration for constructor injection and setter injection.
IoC Basics: Summary of Ways to Start an IoC Container
Detailed introduction to Spring IoC container startup methods including ClassPathXmlApplicationContext, FileSystemXmlApplicationContext in Java environment, and XML and configuration class methods ...
Implementing Simple IoC-04: Manual AOP and Transaction Co...
Manually implement AOP aspect-oriented programming on top of business logic, using JDK dynamic proxies and CGLIB to implement transaction manager for automatic commit and rollback.
Implementing Simple IoC-03: Manually Implementing an IoC ...
Step-by-step guide to manually implement an IoC container using BeanFactory and XML configuration to manage Bean dependencies and complete core dependency injection implementation.
Implementing Simple IoC-02: Implementing Business Without...
Manually implement business logic layering without using Spring, including DAO layer, Service layer, and Controller layer, demonstrating dependency management issues in traditional development.
Implementing Simple IoC-01: Servlet Introduction and Basi...
Step-by-step guide to implementing a simple Spring IoC container, Part 1 covering Servlet basics, characteristics, working principles, and writing your first Servlet program.
Spring Overview: History and Core Concepts IoC, AOP
Comprehensive introduction to Spring framework basics, evolution from EJB to Spring, detailed explanation of Spring's core concepts including IoC and AOP with practical implementation analysis.
Handwritten ORM Framework 4: Framework Optimization and D...
Optimize handwritten ORM framework, focusing on getMapper method implementation in DefaultSqlSession, using JDK dynamic proxy to create Mapper interface proxy objects. Practical analysis of princip...
Handwritten ORM Framework 3: SqlSession, Executor Working...
In-depth analysis of SqlSession and Executor working principles in handwritten ORM framework, detailing implementation mechanisms of SqlSessionFactoryBuilder, DefaultSqlSession, SimpleExecutor.
Handwritten ORM Framework 2: Resources, MappedStatement, ...
This article teaches you to handwrite an ORM framework, detailing the implementation of core components like Resources, MappedStatement, XMLBuilder, including configuration file parsing and mapping...