# mini-spring **Repository Path**: yangwangxingkongdeqianglangc/mini-spring ## Basic Information - **Project Name**: mini-spring - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-01-13 - **Last Updated**: 2024-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mini-spring [![Build Status](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/DerekYRC/mini-spring) [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Stars](https://img.shields.io/github/stars/DerekYRC/mini-spring)](https://img.shields.io/github/stars/DerekYRC/mini-spring) [![Forks](https://img.shields.io/github/forks/DerekYRC/mini-spring)](https://img.shields.io/github/forks/DerekYRC/mini-spring) **English | [简体中文](./README.md)** [**mini-spring-cloud**](https://github.com/DerekYRC/mini-spring-cloud) **(simplified version of the Spring Cloud framework)** ## About The **mini-spring** is a simplified version of the Spring framework that will help you quickly get familiar with the Spring source code and grasp the core principles of Spring. The core logic of Spring is extracted, the code is extremely simplified, and the core functions of Spring, such as IoC and AOP, resource loaders, event listeners, type conversion, container extension points, bean life cycle and scope, and application context, are retained. If this project can help you, please **STAR the project, thank you!!!** ## Contents #### Basics * [IoC](#Ioc) * [Implement a simple container](#实现一个简单的容器) * [BeanDefinition and BeanDefinitionRegistry](#BeanDefinition和BeanDefinitionRegistry) * [Bean Instantiation Strategy](#Bean实例化策略InstantiationStrategy) * [Populate bean with property values](#为bean填充属性) * [Populate bean with bean](#为bean注入bean) * [Resource and ResourceLoader](#资源和资源加载器) * [Define the bean in the XML file](#在xml文件中定义bean) * [Container extension mechanism:BeanFactoryPostProcess and BeanPostProcessor](#容器扩展机制BeanFactoryPostProcess和BeanPostProcessor) * [ApplicationContext](#应用上下文ApplicationContext) * [Init method and destroy method of bean](#bean的初始化和销毁方法) * [Aware interface](#Aware接口) * [Bean scope, added prototype support](#bean作用域,增加prototype的支持) * [FactoryBean](#FactoryBean) * [Event and event listener](#容器事件和事件监听器) * [AOP](#AOP) * [Pointcut expression](#切点表达式) * [JDK-based dynamic proxy](#基于JDK的动态代理) * [CGLIB-based dynamic proxy](#基于CGLIB的动态代理) * [AOP ProxyFactory](#AOP代理工厂ProxyFactory) * [Common Advice: BeforeAdvice/AfterAdvice/AfterReturningAdvice/ThrowsAdvice](#几种常用的Advice) * [PointcutAdvisor:A combination of Pointcut and Advice](#PointcutAdvisor:Pointcut和Advice的组合) * [Dynamic proxies are integrated into the bean lifecycle](#动态代理融入bean生命周期) #### Expanding * [PropertyPlaceholderConfigurer](#PropertyPlaceholderConfigurer) * [Package scan](#包扫描) * [Value annotation](#Value) * [Autowired annotation](#Autowired) * [Type conversion(first part)](#类型转换一) * [Type conversion(second part)](#类型转换二) #### Advanced * [Solve the problem of circular dependencies(first part): without proxy bean](#解决循环依赖问题一) * [Solve the problem of circular dependencies(second part): with proxy bean](#解决循环依赖问题二) #### Bug fix * [populate proxy bean with property values(discovered and fixed by kerwin89)](#没有为代理bean设置属性) ## Usage Each function point corresponds to a branch. Switch to the branch corresponding to the function point to see the new function. The incremental change point is described in the [changelog.md](https://github.com/DerekYRC/mini-spring/blob/main/changelog.md) file. ## Contributing Any contributions you make are greatly appreciated. ## Contact Please feel free to ask me any questions related to mini-spring and other technologies. My email is **15521077528@163.com**. ## Reference - [《Spring源码深度解析》](https://book.douban.com/subject/25866350/) - [《精通Spring 4.x》](https://book.douban.com/subject/26952826/) - [tiny-spring](https://github.com/code4craft/tiny-spring)