fuzhengwei / book-small-spring Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
AbstractAutowireCapableBeanFactory
类中的invokeInitMethods
函数应该像适配器的destroy
函数一样,提供同时实现接口DisposableBean
和添加至xml配置文件destroy-method
时的判断。
参考适配器DisposableBeanAdapter
的源码,是否应该将invokeInitMethods
中的if条件修改如下?
if (StrUtil.isNotEmpty(initMethodName) && !(bean instanceof InitializingBean && "afterPropertiesSet".equals(initMethodName)))
书P92的注释不正确,为了避免二次销毁 应改为 为了避免二次初始化,但源码看起来已经更正了。
40页 top的code里面get/set
应该只有get
,属性都是final
修饰的
com.vow.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator#postProcessPropertyValues的方法是不是应该返回null,com.vow.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#doCreateBean在执行到applyBeanPostProcessorsBeforeApplyingPropertyValues(beanName, bean, beanDefinition);的时候会将InstantiationAwareBeanPostProcessor实现类返回的属性重复add到BeanDefinition#propertyValues属性列表中(beanDefinition.getPropertyValues().addPropertyValue(propertyValue);),会重复赋值
P272 需要使用TransactionSynchronizationManager.getResource(dataSource)存储数据源链接,便于....
这里应该是获取数据源链接
哈哈,把书撸了一遍,一些文本错误地方自己可以意会出正确的,只记得这个了
作业也写完了,哈哈 https://gitee.com/starair/javaer/tree/shouLuSpring_xiaoFuGe/shouLuSpring_xiaoFuGe/bookSmallSpring
P164代码贴图不对
BeanNameAware 没有继承Aware接口
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.