spring用到了那些设计模式

1.工厂模式:这个很明显,在各类BeanFactory以及ApplicationContext建立中都用到了spring 2.代理模式:在Aop实现中用到了动态代理;代理 3.单例模式:spring默认是单例server 4.适配器模式:Spring里,HandlerAdapter用的就是适配器模式io 5.观察者模式:Spring中Observer模式经常使用的地方是listener的实现。如A
相关文章
相关标签/搜索