spring3_学习笔记和总结_学习记录
spring3_学习笔记和总结_学习记录
最近又有机会用spring来做项目了,正好有借口学习下spring3,决定把spring3的doc重新看一遍,查漏补缺,同时试着应用spring最新最好的特性,改进代码质量,提高开发速度。
?
import .xml files
当有bean跨越多个.xml文件定义时,ide有时候会无报错:找不到。比如idea这个ide就如此,eclipse的sts插件生成图bean关系图时也会有问题~利用这个特性可以解决~
?
Anotation config VS xml config
Note
Annotation injection is performed before XML injection, thus the latter configuration will
override the former for properties wired through both approaches.我们可以利用这个特性,在某些时候做些改变,而不需要去重新编译打包~
?
?
?
3.10 Classpath scanning and managed components
?
?
?
?
?