`
Franciswmf
  • 浏览: 780297 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

spring IOC和AOP

 
阅读更多
一、IOC:控制反转,即依赖注入
引用参考:
--spring中bean配置和bean注入
https://www.cnblogs.com/wuchanming/p/5426746.html
---- spring四种依赖注入方式
http://blog.csdn.net/hongweigg/article/details/51491963

--深入浅出spring IOC中三种依赖注入方式
http://blog.csdn.net/u011637069/article/details/51958918

----spring 中属性scope 的prototype(有状态)和singleton(无状态)
http://www.cnblogs.com/jxrichar/p/5240017.html

----Spring IOC之bean的scope属性值:prototype与singleton
http://blog.csdn.net/gulianchao/article/details/7216917

--Spring的两种依赖注入方式:setter方法注入与构造方法注入
https://blog.csdn.net/loster_li/article/details/52863664

1、setter 方式注入( 比较常用 ) ;
2、构造器注入( 死的应用 ) ;
3、通过Autowired注解,基于field方式的依赖注入;
4、静态工厂的方法注入;
5、实例工厂的方法注入;



二、AOP:面向切面编程
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics