English | 简体中文
Sister Projects:
- mini-spring-cloud (simplified Spring Cloud framework)
- mini-netty (simplified Netty framework)
mini-spring is a simplified version of the Spring framework that helps you quickly familiarize yourself with Spring source code and master Spring's core principles. It extracts Spring's core logic with extremely simplified code while preserving Spring's core functionality, including IoC and AOP, resource loaders, event listeners, type conversion, container extension points, bean lifecycle and scope, application context, and other core features.
If this project helps you, please give it a STAR, thank you!!!
- IoC
- Implementing a simple container
- BeanDefinition and BeanDefinitionRegistry
- Bean instantiation strategy InstantiationStrategy
- Populating properties for beans
- Injecting beans into beans
- Resources and resource loaders
- Defining beans in XML files
- Container extension mechanisms BeanFactoryPostProcess and BeanPostProcessor
- Application context ApplicationContext
- Bean initialization and destruction methods
- Aware interfaces
- Bean scopes, adding prototype support
- FactoryBean
- Container events and event listeners
- AOP
- PropertyPlaceholderConfigurer
- Package scanning
- @Value annotation
- Annotation-based dependency injection with @Autowired
- Type conversion (Part 1)
- Type conversion (Part 2)
- Solving circular dependency issues (Part 1): without proxy objects
- Solving circular dependency issues (Part 2): with proxy objects
- Properties not set for proxy beans (discovered and fixed by kerwin89)
- Support for lazy loading and multi-aspect enhancement (by zqczgl)
Read changelog.md
Video Tutorial (Complete Version)
Pull Requests are welcome
Phone/WeChat: 15975984828 Email: 15975984828@163.com
This project may not be used for commercial purposes without my written permission.
- Solve the problem of circular dependencies(first part): without proxy bean
- Solve the problem of circular dependencies(second part): with proxy bean
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 file.
Any contributions you make are greatly appreciated.
Please feel free to ask me any questions related to mini-spring and other technologies. My email is 15521077528@163.com.
