(Turn) spring.jar package Xiangjie

2010-03-29  来源:本站原创  分类:Java  人气:246 

spring.jar that contain a complete release of a single jar package, spring.jar includes spring-mock.jar where in addition to the contents contained in all other jar package, because only in the development environment under which it will use spring-mock . jar to carry out ancillary testing, formal application of the system is not the category.

In addition to spring.jar paper, Spring also includes other 13 separate jar packages, each containing the corresponding Spring components, users can choose according to their needs jar mix your own package, without having to introduce all of the spring.jar class file.

(1) spring-core.jar

This jar file contains the Spring framework of the basic core tools, Spring should have to use other components to this bag, there are the other components of the basic core, of course, you can use in their own systems to use these tools.

(2) spring-beans.jar

The jar file is to be used in all applications, which includes access to the configuration files, create and manage bean as well as Inversion of Control / Dependency Injection (IoC / DI) related to the operation of all classes. If the application only need the basic IoC / DI support for the introduction of spring-core.jar and spring-beans.jar file on it.

(3) spring-aop.jar

This jar file contains the application to use Spring's AOP features required for class. AOP in Spring-based features such as declarative transaction management (Declarative Transaction Management), but also in the application where this jar contains the package.

(4) spring-context.jar

The jar file for the Spring core provides a large-scale expansion. Can be found using the Spring ApplicationContext features all the required classes, JDNI all the required classes, UI areas used in conjunction with the template (Templating) engines such as Velocity, FreeMarker, JasperReports integration classes, as well as the related aspects of verification Validation class.

(5) spring-dao.jar

This jar file contains the Spring DAO, Spring Transaction data access to all classes. In order to use declarative transaction support, they need inside their own applications with spring-aop.jar.

(6) spring-hibernate.jar

This jar file contains the Spring for Hibernate 2 and Hibernate 3 encapsulation of all classes.

(7) spring-jdbc.jar

This jar file contains the right Spring encapsulation of JDBC data access to all classes.

(8) spring-orm.jar

This jar file contains the Spring for DAO feature set is expanded to support iBATIS, JDO, OJB, TopLink, because Hibernate has a separate package, and now not included in this package has. The jar file most of the classes rely on spring-dao.jar inside the class, you will need to use this package also includes spring-dao.jar package.

(9) spring-remoting.jar

This jar file contains the support for EJB, JMS, remote calls Remoting (RMI, Hessian, Burlap, Http Invoker, JAX-RPC) in the class.

(10) spring-support.jar

This jar file contains the support for caching Cache (ehcache), JCA, JMX, mail services (Java Mail, COS Mail), Task Scheduler Scheduling (Timer, Quartz) in the class.

(11) spring-web.jar

This jar file contains the Web application development, the Spring framework to use the required core classes, including automatic loading feature WebApplicationContext class, Struts and JSF integration classes, file upload support classes, Filter class and a large number of tools for supporting classes.

(12) spring-webmvc.jar

This jar file contains the Spring MVC framework for all the related classes. Includes international, labels, Theme, the view showing the FreeMarker, JasperReports, Tiles, Velocity, XSLT-related classes. Of course, if your application uses a separate MVC framework, you do not need this JAR file in any class.

(13) spring-mock.jar

This jar file contains a set of mock classes to complement the Spring application testing. Spring test suite used in which a large number of mock classes, so testing is easier. Analog HttpServletRequest and HttpServletResponse classes unit tests in the Web application is very convenient.

How to choose the release package, decided to choose which release package actually quite simple. If you are building Web applications and consistent use of Spring, it is best to all of the spring.jar on the use of a single document; If your application only uses a simple Inversion of Control / Dependency Injection (IoC / DI) container, then the only spring-core.jar and spring-beans.jar can; if you release the size of the demanding, then have to carefully selected, and only the features they need to take the jar contains the file. Using an independent release package contains its own application you can avoid all the classes do not need to. Of course, you can use some other tools to try all the entire application package smaller, space-saving focus accurately identify their own needs, Spring dependency class, and then merge the required classes and packages on it. Eclispe have a plug-in called ClassPath Helper can help you look for depends on the class.

Spring package dependencies Description:

1) spring-core.jar need commons-collections.jar, spring-core.jar the following various other basic.

2) spring-beans.jar be spring-core.jar, cglib-nodep-2.1_3.jar

3) spring-aop.jar be spring-core.jar, spring-beans.jar, cglib-nodep-2.1_3.jar, aopalliance.jar

4) spring-context.jar be spring-core.jar, spring-beans.jar, spring-aop.jar, commons-collections.jar, aopalliance.jar

5) spring-dao.jar be spring-core.jar, spring-beans.jar, spring-aop.jar, spring-context.jar

6) spring-jdbc.jar be spring-core.jar, spring-beans.jar, spring-dao.jar

7) spring-web.jar be spring-core.jar, spring-beans.jar, spring-context.jar

8) spring-webmvc.jar need spring-core.jar/spring-beans.jar/spring-context.jar/spring-web.jar

9) spring-hibernate.jar be spring-core.jar, spring-beans.jar, spring-aop.jar, spring-dao.jar, spring-jdbc.jar, spring-orm.jar, spring-web.jar, spring-webmvc.jar

10) spring-orm.jar be spring-core.jar, spring-beans.jar, spring-aop.jar, spring-dao.jar, spring-jdbc.jar, spring-web.jar, spring-webmvc.jar

11) spring-remoting.jar be spring-core.jar, spring-beans.jar, spring-aop.jar, spring-dao.jar, spring-context.jar, spring-web.jar, spring-webmvc.jar

12) spring-support.jar be spring-core.jar, spring-beans.jar, spring-aop.jar, spring-dao.jar, spring-context.jar, spring-jdbc.jar

13) spring-mock.jar be spring-core.jar, spring-beans.jar, spring-dao.jar, spring-context.jar, spring-jdbc.jar

相关文章
  • (Turn) spring.jar package Xiangjie 2010-03-29

    spring.jar that contain a complete release of a single jar package, spring.jar includes spring-mock.jar where in addition to the contents contained in all other jar package, because only in the development environment under which it will use spring-m

  • Spring jar package Xiangjie 2010-03-29

    spring.jar that contain a complete release of a single jar package, spring.jar includes spring-mock.jar where in addition to the contents contained in all other jar package, because only in the development environment under which it will use spring-m

  • Detailed spring jar package 2010-09-28

    Detailed spring jar package Detailed spring jar package spring.jar is that it contains the full release of a single jar package, spring.jar contains in addition to spring-mock.jar contents contained in the package all the other jar, because only in t

  • Spring jar package Detailed 2009-02-28

    AspectJ directory are in the Spring framework to use AspectJ source code and test program files. AspectJ is the first java application framework provided by the AOP. dist directory is a Spring release package, regarding release package described belo

  • spring jar package instructions 2010-04-13

    1, Spring2.0 compressed package directory Description aspectj directory in the Spring framework to use aspectj source code and test program files. Aspectj is the first java application framework for the provision of AOP. dist directory is a Spring re

  • spring jar package Xiang Jie [change] 2010-03-18

    spring.jar that contain a complete release of a single jar package, spring.jar includes spring-mock.jar where in addition to the contents contained in all other jar package, because only in the development environment under which it will use spring-m

  • (Transfer) spring jar package with a different dependence 2010-04-06

    spring.jar that contains the full release of a single jar package, spring.jar included in addition to spring-mock.jar contents contained in all the other jar package, because only in the development environment will use spring-mock . jar to carry out

  • Struts + Hibernate + Spring jar package required (reprint) 2010-12-16

    Technologies used: spring2.0 + struts2.0 + hibernate3.0 spring2.0 the JAR package: 1, spring-2.0.jar, Struts2.0 the JAR package: 1, struts2-core-2.0.11.1.jar; 2, struts2-spring-plugin-2.0.11.1.jar; 3, xwork-2.0.4.jar; 4, ognl-2.6.11.jar 5, freemarker

  • spring and hibernate configuration jar package features Xiangjie 2010-04-02

    spring.jar is complete release the module contains a single jar package. But does not include mock.jar, aspects.jar, spring- portlet.jar, and spring-hibernate2.jar. spring-src.zip is the source code archive for all. In addition to spring.jar paper, S

  • spring and hibernate configuration jar package features Xiangjie (change) 2010-09-12

    SSH and close out a framework for the integration, the result is always a lot of baffling error, jar package is the beginning of the configuration of the basic problems for a small package for a multi-pack, one will be another version of the conflict

  • spring component jar package issue scan 2010-11-07

    Jar package recently encountered Controller request mapping problem can not be properly mapped torture. Turn to the Internet and found a Spring component scan and the Eclipse of the jar package out some conflicts. Jar package using the Eclipse export

  • spring of the jar package Detailed 2009-03-02

    Excerpt from: http://blog.csdn.net/exceljava/archive/2007/10/05/1811925.aspx Download the spring package of documents and a variety of packages large projects are often at only some of which we must, if not sure what package when necessary, then take

  • spring package Xiangjie 2010-03-29

    spring.jar that contain a complete release of a single jar package, spring.jar includes spring-mock.jar where in addition to the contents contained in all other jar package, because only in the development environment under which it will use spring-m

  • Analysis of Spring in the jar package 2010-05-25

    Taken from: http://blog.csdn.net/exceljava/archive/2007/10/05/1811925.aspx Download the spring package files and various packages of many, often only part of the project is necessary, if not clear what the package when necessary, take a look below to

  • Struts 2.1.x + Spring 2.5.x + Hibernate 3.3.x integration required JAR package 2010-07-24

    jar package name Location Explain antlr-2.7.6.jar hibernate / lib / required Analysis of HQL aspectjrt spring / lib / aspectj AOP aspectjweaver .. AOP cglib-nodep-2.1_3.jar spring / lib / cglib Agents, Binary increase common-annotations.jar spring/li

  • struts1 and Spring integration package jar 2010-11-17

    struts1 and Spring Integration struts1 and Spring Integration: 1. (1) Add the jar with the Spring package (spring.jar, log4j-1.2.9.jar, commons-logging.jar) If you are using Spring's AOPhuo fill out the corresponding jar package (2) Spring2.5 later (

  • struts2.1.8 + spring2.5.6 + hibernate3.3.2 integration of the landing zone jar package 2010-03-22

    The integrated version is: struts2.1.8 + spring2.5.6 + hibernate3.3.2 http://www.javaeye.com/topic/531396 1. The first integration of hibernate and spring: ================================================== ========== hibernate required jar package:

  • spring jar instructions 2010-12-02

    Spring itself, the first part of the package, reprinted from the Internet because it is the turn more than once, can not find the author, but still would like to thank the author and reproduced. spring.jar is that it contains the full release of a si

  • Detailed packet Spring Jar 2009-06-04

    Yes there is a complete spring.jar release contains a single jar package, spring.jar contains spring-mock.jar except in the content contained in all other contents of jar package, because only in the development environment will be used next spring-m

  • jar package conflicts 2009-10-06

    2009-5-12 18:47:58 org.apache.catalina.core.AprLifecycleListener init Information: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E: \ Program Files \ MyE