In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
What is the nature of the Spring jar package, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Spring.jar is a single jar package that contains a complete release, and spring.jar contains the contents of all jar packages except those contained in spring-mock.jar, because spring-mock.jar is used for auxiliary testing only in the development environment, and these classes are not available in formal applications.
In addition to spring.jar files, Spring also includes 13 other independent jar packages, each containing the corresponding Spring components. Users can choose to combine their own jar packages according to their own needs without having to introduce all the class files of the whole spring.jar.
(1) spring-core.jar
This jar file contains the basic core tool classes of the Spring framework. Other Spring components should use the classes in this package, which is the basic core of other components. Of course, you can also use these tool classes in your own application system.
(2) spring-beans.jar
This jar file is used by all applications and contains all the classes related to accessing configuration files, creating and managing bean, and performing Inversion of Control / Dependency Injection (IoC/DI) operations. If the application only needs basic IoC/DI support, it is OK to introduce spring-core.jar and spring- beans.jar files.
(3) spring-aop.jar
This jar file contains the classes needed to use the AOP feature of Spring in the application. Using AOP-based Spring features, such as declarative transaction management (Declarative Transaction Management), also include this jar package in the application.
(4) spring-context.jar
This jar file provides a large number of extensions for the Spring core. You can find all the classes you need to use the Spring ApplicationContext feature, all the classes you need for JDNI, the classes for UI to integrate with Templating engines such as Velocity, FreeMarker, JasperReports, and related classes for validating Validation.
(5) spring-dao.jar
This jar file contains all the classes for data access by Spring DAO and Spring Transaction. In order to use declarative transaction support, you also need to include spring-aop.jar in your application.
(6) spring-hibernate.jar
This jar file contains all the classes that Spring encapsulates Hibernate 2 and Hibernate 3.
(7) spring-jdbc.jar
This jar file contains all the classes that encapsulate Spring's access to JDBC data.
(8) spring-orm.jar
This jar file includes Spring that extends the DAO feature set to support iBATIS, JDO, OJB, and TopLink, because Hibernate is now a separate package and is no longer included in this package. Most of the classes in this jar file depend on the classes in spring-dao.jar, and you need to include the spring-dao.jar package when using this package.
(9) spring-remoting.jar
This jar file contains classes that support EJB, JMS, and remote calling Remoting (RMI, Hessian, Burlap, Http Invoker, JAX-RPC).
(10) spring-support.jar
This jar file contains classes that support caching Cache (ehcache), JCA, JMX, mail services (Java Mail, COS Mail), and task scheduling Scheduling (Timer, Quartz).
(11) spring-web.jar
This jar file contains the core classes needed for Web application development when using the Spring framework, including classes that automatically load WebApplicationContext features, Struts and JSF integration classes, file upload support classes, filter classes and a large number of tool assist classes.
(12) spring-webmvc.jar
This jar file contains all the classes related to the Spring MVC framework. Contains internationalization, tags, Theme, FreeMarker, JasperReports, Tiles, Velocity, XSLT related classes of the view presentation. Of course, if your application uses a separate MVC framework, you don't need any classes in this JAR file.
(13) spring-mock.jar
This jar file contains a complete set of Spring mock classes to assist in the testing of the application. The Spring test suite uses a large number of mock classes, making testing easier. It is convenient to simulate HttpServletRequest and HttpServletResponse classes in Web application unit testing.
How to choose these release packages and decide which release packages to choose is actually quite simple. If you are building a Web application and will use Spring throughout the process, then it is best to use a single full spring.jar file; if your application only uses a simple Inversion of Control / Dependency Injection (IoC/DI) container, then you only need spring-core.jar and spring-beans.jar; if you have high requirements for the size of the release, then you have to select carefully and only take the jar file that contains the features you need. With a separate release package, you can avoid including all the classes that your application doesn't need. Of course, you can use some other tools to try to make the entire application package smaller, and the key to saving space is to find out exactly the Spring dependent classes you need, and then merge the required classes and packages. Eclispe has a plug-in called ClassPath Helper that can help you find the classes you depend on.
Org.springframework.aop-- aspect-oriented programming of Spring, providing the implementation of AOP (aspect-oriented programming).
Org.springframework.asm--spring 2.5.6 required the asm jar package, and spring3.0 began to provide its own independent asm jar package
Integration of the AspectJ framework provided by org.springframework.aspects--Spring
Org.springframework.beans-- is used by all applications, including accessing configuration files, creating and managing bean, etc., which is the basic implementation of Spring IOC.
Extended support for org.springframework.context.support--Spring context for MVC aspects
Org.springframework.context-- provides extended services based on basic IOC functions, as well as support for many enterprise services, including mail services, task scheduling, JNDI location, EJB integration, remote access, caching and multiple view layer frameworks.
Org.springframework.core--Spring 's core toolkit, which other packages rely on
Org.springframework.expression--Spring expression language
Org.springframework.instrument.tomcat--Spring Integration of tomcat connection Pool
Org.springframework.instrument--Spring 's proxy interface to the server
Simple encapsulation of JDBC by org.springframework.jdbc--
Simple package made by org.springframework.jms-- to simplify the use of jms api
Org.springframework.orm-- integrates third-party orm implementations, such as hibernate,ibatis,jdo and spring's jpa implementation
Org.springframework.oxm--Spring support for object/xml mapping allows you to switch back and forth between JAVA and XML
Simple encapsulation of JUNIT and other testing frameworks by org.springframework.test--
Org.springframework.transaction-- provides consistent declarative and simple programmatic transaction management for JDBC,HIBERNATE,JDO and JPA
Enhancements to org.springframework.web.portlet--Spring MVC
Org.springframework.web.servlet-- support for J2EE6.0 servlet3.0
Org.springframework.web.struts-- integrates the support of struts framework, which makes it easier and easier to integrate Struts framework.
Org.springframework.web-- contains the core classes needed for Web application development when using the Spring framework, including classes that automatically load WebApplicationContext features, Struts and JSF integration classes, file upload support classes, filter classes and a large number of tool assist classes.
Spring package dependency description:
1) the need for commons-collections.jar,spring-core.jar for spring-core.jar is the basis of each of the following.
2) spring-core.jar,cglib-nodep-2.1_3.jar is required for spring-beans.jar
3) spring-core.jar,spring-beans.jar,cglib-nodep-2.1_3.jar,aopalliance.jar is required for spring-aop.jar
4) spring-core.jar,spring-beans.jar,spring-aop.jar,commons-collections.jar,aopalliance.jar is required for spring-context.jar
5) spring-core.jar,spring-beans.jar,spring-aop.jar,spring-context.jar is required for spring-dao.jar
6) spring-core.jar,spring-beans.jar,spring-dao.jar is required for spring-jdbc.jar
7) spring-core.jar,spring-beans.jar,spring-context.jar is required for spring-web.jar
8) spring-core.jar/spring-beans.jar/spring-context.jar/spring-web.jar is required for spring-webmvc.jar
9) spring-core.jar,spring-beans.jar,spring-aop.jar,spring- dao.jar,spring-jdbc.jar,spring-orm.jar,spring-web.jar,spring-webmvc.jar is required for spring- hibernate.jar
10) spring-core.jar,spring-beans.jar,spring-aop.jar,spring- dao.jar,spring-jdbc.jar,spring-web.jar,spring-webmvc.jar is required for spring-orm.jar
11) spring-core.jar,spring-beans.jar,spring-aop.jar,spring- dao.jar,spring-context.jar,spring-web.jar,spring-webmvc.jar is required for spring- remoting.jar
12) spring-core.jar,spring-beans.jar,spring-aop.jar,spring-dao.jar,spring-context.jar,spring-jdbc.jar is required for spring-support.jar
13) spring-core.jar,spring-beans.jar,spring-dao.jar,spring-context.jar,spring-jdbc.jar is required for spring-mock.jar
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.