spring运用的设计模式

1.代理模式(典型的aop)

2.工厂模式(beanFactory)

3.观察者模式(ApplicationContextEvent && ApplicationContextListener)

4.原型模式(scope中的prototype)

5单例模式(singleton默认都是单例的)

其他的以后补充

posted @ 2017-02-07 15:16  麦子TMAC  阅读(153)  评论(0编辑  收藏  举报