All development kits, complete documentation, and project development instances of spring 2.5 jar

Source: Internet
Author: User

Spring 2.5 jar
All development kits, complete documents, and project development instances

Spring jar
The detailed description of the package spring. jar contains a complete release of a single jar package.
The contents of all the other jar packages included in the spring-mock.jar, because spring-mock.jar is used for auxiliary testing only in the development environment,
These classes are not allowed in formal application systems.
In addition to the spring. jar file, spring also includes 13 other independent jar packages, each containing the corresponding
Spring components, you can choose to combine your own jar package according to your needs, without introducing all the class files of the entire spring. jar.
(1)
Spring-core.jar



This jar file contains the basic core tool class of the Spring framework. Other spring components must use the class in this package.
Of course, you can also use these tool classes in your application system.
(2) spring-beans.jar


This jar file is required by all applications
Used to access the configuration file, create and manage beans, and perform inversion of control/dependency
Injection (IOC/di) operations related to all classes. If the application only requires basic IOC/di support, introduce spring-core.jar and spring-
The beans. jar file is enough.
(3) spring-aop.jar


This jar package is required when spring's AOP features are used in applications.
. Use spring features based on AOP, such as declarative Transaction Management (declarative transaction)
Management), you must also include this jar package in the application.
(4) spring-context.jar


The jar file is
Spring core provides a large number of extensions. You can find
All the classes required for applicationcontext, all the classes required for jdni, And the UI used for templating engines such
Classes integrated by velocity, freemarker, and jasperreports, as well as related classes for validation.
(5)
Spring-dao.jar

 

This jar file contains spring Dao and spring
All classes for data access using transaction. To use declarative transaction support, you also need to include spring-aop.jar in your own applications.
(6)
Spring-hibernate.jar



This jar file contains spring for hibernate 2 and Hibernate
3. All classes to be encapsulated.
Spring-jdbc.jar


This jar file contains all the files encapsulated by spring for JDBC data access.
Class.
Spring-orm.jar


This jar file contains spring extensions to the DaO feature set to support
Ibatis, JDO, OJB, and toplink are not included in this package because hibernate has been independently packaged. Most classes in this jar file must depend on
Class in the spring-dao.jar, You need to include the spring-dao.jar package at the same time when using this package.
(9)
Spring-remoting.jar



This jar file contains support for EJB, JMS, remote call remoting (RMI, Hessian,
Burlap, HTTP invoker, JAX-RPC) class.
(10) spring-support.jar


This jar file
Including cache (ehcache), JCA, JMX, and email service (Java mail, cos
Mail), job Plan Scheduling (timer, quartz) class.
Spring-web.jar


This
The jar file contains the core classes required to use the Spring framework during web application development, including the class for automatically loading the webapplicationcontext feature and struts
Integration with JSF, file upload support, filter, and many auxiliary tools.
Spring-webmvc.jar


This jar file
Including spring
All classes related to the MVC framework. Freemarker, jasperreports, tiles, velocity,
XSLT-related classes. Of course, if your application uses an independent MVC framework, you do not need any classes in the jar file.
Spring-mock.jar


 
This jar file contains a complete set of mock classes from spring to assist in application testing. The Spring Test Suite uses a large number of mock classes, making testing easier. Simulation
The httpservletrequest and httpservletresponse classes are convenient in Web application unit testing.




Certificate ------------------------------------------------------------------------------------------------------------------------------------------

How to choose these release packages
Deciding which release packages to choose is actually quite simple. If you are building a web application and will use spring throughout the process, you 'd better use a single
Spring. jar file; if your application only uses the simple inversion of control/dependency
Injection (IOC/di) container, you only need to spring-core.jar and spring-beans.jar; if you have very high requirements for release size
High, You have to carefully select, only take the JAR file containing the features you need. With an independent release package, you can avoid including all the classes that your application does not need. Of course you can use other tools
To reduce the entire application package, the focus of space saving is to accurately find the desired spring dependent classes, and then merge the required classes and packages. Eclispe has a plug-in called
Classpath helper can help you find the dependent classes.
Spring package dependency description:
1)
Spring-core.jar needs commons-collections.jar, spring-core.jar is the basic of the following other.
2)
Spring-beans.jar spring-core.jar, cglib-nodep-2.1_3.jar
3)
Spring-aop.jar spring-core.jar, spring-beans.jar, cglib-nodep-
2.1 _ 3.jar, aopalliance. Jar
4)
Spring-context.jar spring-core.jar, spring-beans.jar, spring-
AOP. jar, commons-collections.jar, aopalliance. Jar
5)
Spring-dao.jar needs spring-core.jar, spring-beans.jar, spring-aop.jar, spring-
Context. Jar
6)
Spring-jdbc.jar spring-core.jar, spring-beans.jar, spring-dao.jar
7)
Spring-web.jar spring-core.jar, spring-beans.jar, spring-context.jar
8)

Spring-webmvc.jar spring-core.jar, spring-beans.jar, spring-
Context. jar, spring-web.jar
9) Spring
-Hibernate. Jar requires 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 needs 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 requires 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 spring-core.jar, spring-beans.jar, spring-
AOP. jar, spring-dao.jar, spring-context.jar, spring-jdbc.jar
13)
Spring-mock.jar
Yes

Spring-core.jar, spring-beans.jar, spring-dao.jar, spring-
Context. jar, spring-jdbc.jarspring2.0 and spring2.5 and above jar package differences spring
Jar package of 2.5
In spring 2.5, spring web MVC is no longer part of the 'spring. jar' file.
Spring MVC in the form of 'spring-webmvc. jar' and 'spring-webmvc-portlet.jar 'files in the release package
The LIB/modules directory exists. In addition, the support for struts 1.x is independent of 'spring-webmvc-struts.jar '.

Note
Meaning: Spring's dispatcherservlet, which is frequently used, is also spring web.
Part of the MVC framework. Therefore, even if you only want remote access (for example, expose hessian or
To use dispatcherservlet, you must also set 'spring-webmvc. jar' (or
'Spring-webmvc-Portlet/struts. jar') Put it next to 'spring. jar.

Spring 2.0
'Spring-JMX. jar' and 'spring-remoting. jar' have been transferred to spring
In section 2.5, 'spring-context. jar' (for JMX and non-HTTP remote support) is partially transferred to 'spring-web. jar'
(For HTTP remote support ).

'Spring-support. jar' of spring 2.0 is renamed
'Spring-context-support.jar 'to better express its true meaning. 'Spring-Portlet. jar' is renamed
'Spring-webmvc-portlet.jar 'indicates that it is one of the Child modules of spring web MVC framework. Similarly,
'Spring-Struts. jar' is changed to 'spring-webmvc-struts.jar '.

Spring
2.0 'spring-JDO. jar', 'spring-JPA. jar', 'spring-hibernate3.jar ',
'Spring-toplink. jar' and 'spring-ibatis. jar' are merged into spring.
2.5 large granularity in 'spring-Orm. jar.


'Spring-test. jar' of spring 2.5'
Replaces 'spring-Mock. jar' to express its strong interest in the test context framework. Note:
'Spring-test. jar' contains everything in the previous 'spring-Mock. jar' version. Therefore, it can be directly replaced by unit or integration testing.

SP
Ring
'Spring-TX. jar' of 2.5 replaces 'spring-dao. jar' and 'spring-JCA. jar'
File to express its strong interest in the transaction framework.

Spring 2.5
Use the JAR file as an osgi-compatible bundle. This makes it easier to use spring in the osgi environment and does not require custom packaging.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.