GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - virusc/mini-spring: mini-spring是简化版的spring框架,能帮助你快速熟悉spring源码和掌握spring的核心原理。抽取了spring的核心逻辑,代码极度简化,保留spring的核心功能,如IoC和AOP、资源加载器、事件监听器、类型转换、容器扩展点、bean生命周期和作用域、应用上下文等核心功能。

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

160 Commits
160 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README_en.md
README_en.md
 
 
changelog.md
changelog.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

mini-spring

Build Status License Stars Forks

English | 简体中文

姊妹版:mini-spring-cloud (简化版的spring cloud框架)

关于

mini-spring是简化版的spring框架,能帮助你快速熟悉spring源码和掌握spring的核心原理。抽取了spring的核心逻辑,代码极度简化,保留spring的核心功能,如IoC和AOP、资源加载器、事件监听器、类型转换、容器扩展点、bean生命周期和作用域、应用上下文等核心功能。

如果本项目能帮助到你,请给个STAR,谢谢!!!

功能

基础篇

  • IoC
    • 实现一个简单的容器
    • BeanDefinition和BeanDefinitionRegistry
    • Bean实例化策略InstantiationStrategy
    • 为bean填充属性
    • 为bean注入bean
    • 资源和资源加载器
    • 在xml文件中定义bean
    • 容器扩展机制BeanFactoryPostProcess和BeanPostProcessor
    • 应用上下文ApplicationContext
    • bean的初始化和销毁方法
    • Aware接口
    • bean作用域,增加prototype的支持
    • FactoryBean
    • 容器事件和事件监听器
  • AOP
    • 切点表达式
    • 基于JDK的动态代理
    • 基于CGLIB的动态代理
    • AOP代理工厂ProxyFactory
    • 几种常用的Advice: BeforeAdvice/AfterAdvice/AfterReturningAdvice/ThrowsAdvice
    • PointcutAdvisor:Pointcut和Advice的组合
    • 动态代理融入bean生命周期

扩展篇

  • PropertyPlaceholderConfigurer
  • 包扫描
  • @Value注解
  • 基于注解@Autowired的依赖注入
  • 类型转换(一)
  • 类型转换(二)

高级篇

  • 解决循环依赖问题(一):没有代理对象
  • 解决循环依赖问题(二):有代理对象

其他

  • 没有为代理bean设置属性(discovered and fixed by kerwin89)
  • 支持懒加载和多切面增强(by zqczgl)

使用方法

阅读changelog.md

提问

点此提问

贡献

欢迎Pull Request

关于我

点此了解

手机/微信:15521077528 邮箱:[email protected]

Star History

Star History Chart

版权说明

未取得本人书面许可,不得将该项目用于商业用途

参考

  • 《Spring源码深度解析》
  • 《Spring 源码解析》
  • 《精通Spring 4.x》
  • 《tiny-spring》

About

mini-spring是简化版的spring框架,能帮助你快速熟悉spring源码和掌握spring的核心原理。抽取了spring的核心逻辑,代码极度简化,保留spring的核心功能,如IoC和AOP、资源加载器、事件监听器、类型转换、容器扩展点、bean生命周期和作用域、应用上下文等核心功能。

github.com/DerekYRC/mini-spring

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.