首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
造轮子-手写Spring
研究生程序员超哥
创建于2023-06-17
订阅专栏
手写spring源码
等 3 人订阅
共15篇文章
创建于2023-06-17
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
(造轮子)手写Spring框架-PointcutAdvisor:Pointcut和Advice的组合
代码地址:https://github.com/WangChao-ly/chao-spring/tree/pointcut-advisor
(造轮子)手写Spring框架-几种常用的Advice:BeforeAdvice/AfterAdvice/AfterReturningAdvice...
代码地址: https://github.com/WangChao-ly/chao-spring/tree/common-advice
(造轮子)手写Spring框架-AOP代理工厂
AOP代理工厂 代码地址:https://github.com/WangChao-ly/chao-spring/tree/proxy-factory
(造轮子)手写Spring框架-动态代理(基于JDK的动态代理和基于CGLIB的动态代理)
动态代理(基于JDK的动态代理和基于CGLIB的动态代理) 代码地址:https://github.com/WangChao-ly/chao-spring/tree/dynamic-proxy
(造轮子)手写Spring框架-切点表达式
切点表达式 代码地址:WangChao-ly/chao-spring at pointcut-expression (github.com)
(造轮子)手写Spring框架-容器事件和事件监听器
容器事件和事件监听器 代码地址:WangChao-ly/chao-spring at event-and-event-listener (github.com)
(造轮子)手写Spring框架-Bean的Aware接口&bean作用域,增加prototype的支持&FactoryBean
Bean的Aware接口&bean作用域,增加prototype的支持&FactoryBean...
(造轮子)手写Spring框架-Bean的初始化和销毁方法
Bean的初始化和销毁方法 代码地址:WangChao-ly/chao-spring at init-and-destroy-method (github.com)
(造轮子)手写Spring框架-应用上下文
应用上下文 代码地址:WangChao-ly/chao-spring at application-context (github.com)
(造轮子)手写Spring框架-BeanFactoryPostProcessor和BeanPostProcessor
手写Spring,BeanFactoryPostProcessor和BeanPostProcessor
(造轮子)手写Spring框架-在xml文件中定义bean
在xml文件中定义bean 代码地址: https://github.com/WangChao-ly/chao-spring/tree/xml-file-define-bean
(造轮子)手写Spring框架-资源和资源加载器
资源和资源加载器 代码路径:https://github.com/WangChao-ly/chao-spring/tree/resource-and-resource-loader
(造轮子)手写Spring框架-为Bean注入Bean对象
为Bean注入Bean对象 Github链接:https://github.com/WangChao-ly/chao-spring/tree/populate-bean-with-bean
(造轮子)手写Spring框架-Bean实例化策略InstantiationStrategy与为bean填充属性
Bean实例化策略InstantiationStrategy与为bean填充属性,InstantiationStrategy-populate-bean-with-property-values分支
(造轮子)手写Spring框架-BeanDefinition and BeanDefinitionRegisty
Spring源码阅读,通过手写该BeanDefinition的注册和获取过程,了解到了bean在容器中封装和获取,本质是HashMap和单例的应用,同时用到了经典的设计模式,使得代码更加的优雅!