Spring相关组件阅读笔记.
seaswalker / spring-analysis Goto Github PK
View Code? Open in Web Editor NEWSpring源码阅读
Spring源码阅读
Spring相关组件阅读笔记.
文章里的图片看不到了
spring启动后会有很多通过消息通知执行的组件,
这种要怎么去看源码分析,因为是消息调用,很多时候不知道有多少class监听处理,很懵逼
That would be nice, I currently can't read this project
建议在README.md中新增Spring源码的版本说明。eg:org.springframework:spring-beans:5.3.22。
Spring源码mark一下
有部分图片无法展示
请问UML类图是用哪个软件画的啊~
@OverRide
public AopProxy createAopProxy(AdvisedSupport config) throws AopConfigException {
if (config.isOptimize() || config.isProxyTargetClass() ||
hasNoUserSuppliedProxyInterfaces(config)) {
Class<?> targetClass = config.getTargetClass();
if (targetClass.isInterface() || Proxy.isProxyClass(targetClass)) {
return new JdkDynamicAopProxy(config);
}
return new ObjenesisCglibAopProxy(config);
} else {
return new JdkDynamicAopProxy(config);
}
}
逻辑很明显,如果指定了(proxy-target-classs设为true)使用Cglib,那么就会使用Cglib的方式,如果没有指定(或为false),那么先回检测被代理类是否实现了自己的接口,如果实现了,那么就采用JDK动态代理的方式。
在设置(proxy-target-classs设为true)的情况下走
if (targetClass.isInterface() || Proxy.isProxyClass(targetClass)) {
return new JdkDynamicAopProxy(config);
}
不是也可能使用JDK吗?我不太理解这个地方。 为啥都说(proxy-target-classs设为true使用CGLB代理呢?
请问有博客吗,关注一波
Can I reprint your articles to my blog? I will mark the reproduced from your github. Thanks.
能不能搞一个在线阅读,用docsify很快的,配置一下就行了。
和你一起学习
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.