spring 3.0.5 library jars

后端 未结 2 1816
礼貌的吻别
礼貌的吻别 2020-12-23 23:28

All, I am starting with Spring and got the Spring 3.0.5 distribution. I see the following jars:

  • org.springframework.aop-3.0.5.RELEASE.jar
  • org.springfr
2条回答
  •  半阙折子戏
    2020-12-23 23:50

    There is a following chart (from Diagram of Spring 3.0 module dependencies):

    alt text

    As you can see, there are several groups of modules:

    • "Core Spring" - context and its dependencies (asm is missed, aop depends on it)

    • Web

      • web - basic webapp integration
      • webmvc (web.servlet) - Spring MVC Framework
      • webmvc-portlet (web.portlet) - Spring MVC for portlets
      • web.struts - Struts integration
    • Data access

      • tx (transaction) - basic transaction support
      • jdbc - JDBC support
      • orm - ORM integration
    • Other modules

      • context-support - integration with Quartz, Javamail, Ehcache, etc
      • jms, oxm - JMS and object-XML mapping respectively
      • test - for unit testing
      • aspects - AspectJ intergration (usually not needed)
      • instrument, instrument.tomcat - load-time weaving

    So, if you use build tool that supports transitive dependencies (such as Maven), you usually only need to declare the required modules from web and data groups, and some from the other modules, if needed. Also you may need to declare context in order to configure logging.

    For example, if you want to create a web application with Spring MVC and Hibernate, you declare webmvc (web.servlet) and orm. If you don't use Maven, you also need to import their transitive dependencies, as shown on the chart.

    See also:

    • Diagram of Spring 3.0 module dependencies
    • Obtaining Spring 3 Artifacts with Maven
    • Logging Dependencies in Spring

提交回复
热议问题