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 the development environment will be used spring-mock . jar for secondary testing, the formal application is not in these classes.
addition spring.jar file, Spring also includes 13 other independent jar package, each containing the corresponding Spring components, users can choose according to their needs combined their jar package, without having to introduce spring.jar all the class files.
(1) spring-core.jar
the Spring framework jar file contains the basic core tools, Spring to have to use other components to this bag, there are the other components of the basic core, of course, you can in your own applications 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 basic IoC / DI support, the introduction of spring-core.jar and spring-beans.jar file on it.
(3) spring-aop.jar
the jar used in the application file contains Spring's AOP features required for class. The Spring AOP-based features, such as declarative transaction management (Declarative Transaction Management), also contains the jar in the application package.
(4) spring-context . jar
the jar file for Spring core provides a large number of extensions. Spring ApplicationContext can be found using the properties of all the classes required, JDNI all the necessary classes, UI aspects of the template used (Templating) engines such as Velocity, FreeMarker, JasperReports integration classes,
air force 1 low shoes, as well as related aspects of validation 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,
air force one, the need to include in their application in the spring-aop.jar.
(6) spring-hibernate.jar
This jar file contains the Spring Hibernate 2 and Hibernate 3 on the encapsulation of all classes.
(7) spring-jdbc.jar
This jar file contains the Spring JDBC data access is encapsulated on all classes.
(8) spring-orm.jar
the Spring jar file contains the feature set of DAO was expanded to support iBATIS, JDO, OJB, TopLink, Hibernate has a separate package because Now is not included in this package was. Most of the jar file to be dependent on spring-dao.jar class in the class, you need to use this package also includes spring-dao.jar package.
(9) spring-remoting.jar
This jar file contains the support of EJB, JMS, remoting Remoting (RMI, Hessian, Burlap, Http Invoker, JAX-RPC) aspects of the class.
(10) spring-support.jar
support of this jar file contains the cache Cache (ehcache), JCA, JMX, mail service (Java Mail, COS Mail), Task Scheduler Scheduling (Timer, Quartz ) aspects of the class.
(11) spring-web.jar
This jar file contains the Web application development, the Spring framework to use the core classes required, including automatic loading characteristics of the class WebApplicationContext, Struts integration with the JSF classes, file upload support classes, Filter class and a large number of tools to assist class.
(12) spring-webmvc.jar
the Spring MVC framework jar file contains all the related classes. Including international,
nike air force one low, 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 the JAR file to any class.
(13) spring-mock.jar
This jar file contains the Spring application of a set of mock classes to aid in the testing. Spring test suite which uses a large number of mock classes, so the test is even more simple. HttpServletRequest and HttpServletResponse classes simulate Web application unit test is very convenient.
how to choose the publishing package, decided to choose which distribution package is actually quite simple. If you are building Web applications and full use of Spring, it is best to use a single document all of the spring.jar; if your application using only simple Inversion of Control / Dependency Injection (IoC / DI) container, then the only spring-core.jar and spring-beans.jar can; If you publish the size of the demanding, so have carefully selected only the features they need to take the jar contains the file. Released by an independent package you can avoid the application of their own do not contain all the classes. Of course, you can use other tools to try all the entire application package smaller, space-saving focus necessary to accurately identify their Spring dependency class, and then merge the required classes and packages on it . Eclispe has a plugin 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 each of the following 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,
air force one mid, spring-aop.jar, commons- collections.jar, aopalliance.jar
5); spring-dao.jar be spring-core.jar, spring-beans.jar, spring-aop.jar,
air force ones, spring-context.jar
6) spring-jdbc . jar to 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 be 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,
air force 1 classic mid, 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