什么时候选择Spring Framework? [英] When to choose Spring Framework?

查看:74
本文介绍了什么时候选择Spring Framework?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI

我想知道何时必须选择Spring框架.选择spring框架有什么明显的优势.我不想知道这些差异,而不是选择其他技术(如J2EE等).为什么我们特别选择Spring?

I would like to know when we have to choose the Spring framework. Is there any clear advantage on choosing the spring framework. I don't want to know the differences, instead of choosing the other technologies like J2EE etc. why we particularly go with Spring?

推荐答案

问题是您是在谈论核心Spring框架还是Spring框架家族. (Spring Batch,Spring MVC,Spring Web Flow,Spring Web Services等)

The question is if you are talking about the core Spring framework, or the family of Spring frameworks. (Spring Batch, Spring MVC, Spring Web Flow, Spring Web Services etc)

核心框架功能:

  • 成熟的依赖注入框架=>实现单元可测试性确实很容易
  • AOP -支持
  • 良好的IDE 支持( STS )
  • * Template:实用程序类,以非常简单且无重复代码的方式帮助您执行最常规的事情. ( JdbcTemplate HibernateTemplate 视频,博客,论坛等)
  • 不需要真实的"应用服务器
  • 这是非侵入式:据我所知,在任何Spring项目的开发中,真正重要的一点就是使开发人员能够退出"项目的Spring.在任何给定的时间,并在代码库中留下尽可能小的占用空间.
  • Mature dependency injection framework => achieving unit-testability is really easy
  • AOP-support
  • Good IDE support (STS)
  • *Template: utility classes that help doing the most regular things in a very easy and boilerplate-code-free way. (JdbcTemplate, HibernateTemplate, JmsTemplate, etc)
  • Great amount of resources. (videos, blogs, forums, etc)
  • No need for a 'real' application server
  • It's non-intrusive: as far as I know, at the development of any Spring project is a really important point to give the ability to the developer the 'pulling out' of Spring of the project at any given time and leaving as minimal a footprint in the codebase as possible.

但是在我看来,只有当您开始使用我一开始提到的框架之一时,它的力量和力量才真正显示出来.基本上选择其中任何一个,您都会发现一个非常好的,积极开发的框架,可以完成给定的任务,当然还有深度的Spring集成.

But In my opinion its strength and power really shows only when you start to use one of the frameworks I mentioned in the beginning. Basically pick anyone of those and you'll find a really great, actively developed framework for a given set of tasks, with of course deep Spring integration.

这篇关于什么时候选择Spring Framework?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆