Spring 框架中都用到的设计模式

Spring框架中使用到了大量的设计模式,下面列举了比较有表明性的:spring 代理模式—在AOP和remoting中被用的比较多。 单例模式—在spring配置文件中定义的bean默认为单例模式。 模板方法—用来解决代码重复的问题。好比. RestTemplate, JmsTemplate, JpaTemplate。 工厂模式—BeanFactory用来建立对象的实例。 适配器--spring
相关文章
相关标签/搜索