Spring框架下面各个部分是怎么样一种关系,他们都有那些职责?

如同IDEA之中,显示的Spring框架下面有
SpringBatch,
SpringData JPA,
Spring integration,
Spring MVC,
Spring Security,
Spring Web Flow,
Spring Web Services,等
他们之间是什么关系,和Spring框架之间又有什么关系?

如果创建一个最简单的Hello Spring程序我应该勾选哪个?
图片描述

阅读 4k
2 个回答

勾选Spring MVC,上述的区别,你从字面意思就可以看出来,spring MVC是做MVC框架的,web service做接口的,现在都用restful api了,就不用webservice了,其他的很少使用,你可以在spring官网上查到:spring.io

Spring Batch provides reusable functions that are essential in processing large volumes of records, including logging/tracing, transaction management, job processing statistics, job restart, skip, and resource management. It also provides more advanced technical services and features that will enable extremely high-volume and high performance batch jobs through optimization and partitioning techniques. Simple as well as complex, high-volume batch jobs can leverage the framework in a highly scalable manner to process significant volumes of information.

Spring Web Flow builds on Spring MVC and allows implementing the "flows" of a web application. A flow encapsulates a sequence of steps that guide a user through the execution of some business task. It spans multiple HTTP requests, has state, deals with transactional data, is reusable, and may be dynamic and long-running in nature..

Spring framework是分模块的,用一张spring的官方文档上的图来说明

http://docs.spring.io/spring/...
clipboard.png

你图上的这些项目都是基于这些模块开发的Spring的子项目,比如说Spring MVC是针对web开发的,那么它里面用到的模块有Spring web等,还有一些Spring的核心模块。

你只是写一个Hello world的话,用Spring Core Container下的模块就行了。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题