Hagi 2009. 10. 8. 21:47

1.2. Usage scenarios



이 그림을 보면, 사용해야할 기본적이 jar파일이 나온다.


Spring Core(spring-core.jar), => core utilities

Spring Web(spring-web.jar), => web application context, multipart resolver, Struts support, JSF support, web utilities

Spring Context(spring-context.jar) => application context, validation, JNDI,UI context support


그리고 Spring Web MVC(spring-webmvc.jar) 이것에 대한 이유는 아래에 나온다.

=> framework servlet, web MVC framework, web controllers, web views

또 spring-framework-2.5.6.SEC01\dist\modules의 jar파일 목록을 살펴보면, spring-beans.jar가 있는데, 설정에서 클래스 관리를 위해 이것이 필요하다.  =>  support, bean container

<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
  <property name="host" value="${mail.host}"/>


아래 것들은 써보지 않아서 아직 ...

spring-jdbc.jar => JDBC support

 만약 iBATIS를 쓴다면,

spring-orm.jar => iBATIS SQL Maps support, Apache OJB support, TopLink? support, JDO support


참조 : http://www.system-trust.com/pukiwiki/?Spring%2F%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB%A4%C8%B3%AB%C8%AF%B4%C4%B6%AD

2.7. Migrating to Spring 2.5

2.7.1. Changes Jar packaging in Spring 2.5

As of Spring 2.5, Spring Web MVC is no longer part of the 'spring.jar' file. Spring MVC can be found in 'spring-webmvc.jar' and 'spring-webmvc-portlet.jar' in the lib/modules directory of the distribution. Furthermore, the Struts 1.x support has been factored out into 'spring-webmvc-struts.jar'.

스프링2.5부터 Spring Web MVC는 spring.jar파일에 없다. Spring MVC는 spring-webmvc.jar와 spring-webmvc-portlet.jar(lib/modules 디렉토리)에 있다.

Note: The commonly used Spring's DispatcherServlet is part of Spring's Web MVC framework. As a consequence, you need to add 'spring-webmvc.jar' (or'spring-webmvc-portlet/struts.jar') to a 'spring.jar' scenario, even if you are just using DispatcherServlet for remoting purposes (e.g. exporting Hessian or HTTP invoker services).

통상적으로 Spring의 DispatcherServlet 사용은 Spring MVC의 영역이다. 결론적으로,  단순히 조정기능을 쓰기 위해 DispatcherServlet을 사용하더라도,  spring-webmvc.jar나 spring-webmvc-portlet.jar을 써야한다. 

Spring 2.0's 'spring-jmx.jar' and 'spring-remoting.jar' have been merged into Spring 2.5's 'spring-context.jar' (for the JMX and non-HTTP remoting support) and partly into 'spring-web.jar' (for the HTTP remoting support).

스프링2.0의 spring-jmx.jar와 spring-remoting.jar파일은 스프링2.5에서 spring-context.jar파일로 통합되었다.

Spring 2.0's 'spring-support.jar' has been renamed to 'spring-context-support.jar', expressing the actual support relationship more closely.'spring-portlet.jar' has been renamed to 'spring-webmvc-portlet.jar', since it is technically a submodule of Spring's Web MVC framework. Analogously, 'spring-struts.jar' has been renamed to 'spring-webmvc-struts.jar'.

스프링2.0의 spring-support.jar파일은 spring-context-support.jar로 이름이 바뀌었다.(좀 더 지원하는 기능을 이름에서 명확하게 하였음) 또 spring-portlet.jar는 spring-webmvc-portlet.jar로 바뀌었는데, 이것이 Spring MVC에서 서브모듈이기 때문이다. spring-struts.jar는  spring-webmvc-struts.jar

Spring 2.0's 'spring-jdo.jar', 'spring-jpa.jar', 'spring-hibernate3.jar', 'spring-toplink.jar' and 'spring-ibatis.jar' have been combined into Spring 2.5's coarse-granular 'spring-orm.jar'.

Spring 2.5's 'spring-test.jar' supersedes the previous 'spring-mock.jar', indicating the stronger focus on the test context framework. Note that'spring-test.jar' contains everything 'spring-mock.jar' contained in previous Spring versions; hence it can be used as a straightforward replacement for unit and integration testing purposes.

Spring 2.5's 'spring-tx.jar' supersedes the previous 'spring-dao.jar' and 'spring-jca.jar' files, indicating the stronger focus on the transaction framework.

Spring 2.5 ships its framework jars as OSGi-compliant bundles out of the box. This facilitates use of Spring in OSGi environments, not requiring custom packaging anymore.


출처 : http://static.springsource.org/spring/docs/2.5.x/reference/new-in-2.html#new-in-2-migrating-packaging