Build an SSH Project (2) and build an ssh Project

Source: Internet
Author: User
Tags xml parser

Build an SSH Project (2) and build an ssh Project

This chapter describes the jar packages required by the SSH project and the functions of each jar package.

 

I. struts2

1. Download struts2, struts2 folder >>>> apps >>>> atruts-blank.war >>>> decompress >>> WEB-INF >>>> lib

2. This is a blank case in the application cases provided by struts2. The package here is sufficient for our development project.

3. Explanation of the jar package:

Struts2-core-2.3.34.jar -- struts2 core jar package, indispensable

Xwork-core-2.1.6-the core package of xwork, because Struts2 is extended by xwork, some classes are still associated with the xwork class

Ognl-3.0.6.jar -- ognl: Object Graph Navigation Language, Struts2 writes the attributes of an Object through it.

Freemarker-2.3.19.jar-template-related operations require packages, Struts2 UI tag templates are written using FreeMarker.

Commons-fileupload-1.3.jar -- File Upload Component, which needs to be added after struts-2.1.6.

Commons-io-2.0.1.jar-the jar package that uploads files.

Commons-lang3-3.2jar -- lang Package in commons project

Commons-logging-1.0.4.jar-log package, which is used by the Struts2 framework to support the JDK1.4 logging of Log4j.

Antlr-2.7.6.jar-a tool that accepts the description of the word grammar language and produces programs that recognize the statements in these languages.

Asm-3.3.jar -- class library that operates java bytecode.

Asm-commons-3.3-Provides event-based representations.

Asm-tree-3.3 -- provides an object-based representation.

Slf4j-api-1.6.1.jar -- used to build a log environment.

Slf4j-log4j-1.7.2.jar-slf4j and log4j associated packages, log4j is a log implementation framework.

Javassist-3.11.0.GA.jar -- this is a class library that edits Java bytecode.

Struts2-spring-plugin-2.3.15.3.jar -- the package required for Struts2 to integrate with Spring.

4. Reference URL: http://www.cnblogs.com/zfy-220/p/4265316.html

Ii. spring

1. Download the spring and spring folders >>> lib

2. We don't need to take it all. We just need the packages we need.

3. Explanation of the jar package:

Spring-core-3.2.0.RELEASE.jar-spring core package

Spring-context-3.2.0.RELEASE.jar-provides a lot of extensions for Spring Core

Spring-beans-3.2.0.RELEASE.jar -- contains all classes that access the configuration file, create and manage beans, and perform (IoC/DI) operations.

Spring-aop-3.2.0.RELEASE.jar-includes support for classes and source-level metadata needed to use Spring's AOP features in applications.

Spring-jdbc-3.2.0.RELEASE.jar -- contains all classes Spring encapsulates JDBC data access.

Spring-aspects-3.2.0.RELEASE.jar-provides support for AspectJ to easily integrate Aspect-Oriented functionality into the IDE.

Spring-expression-3.2.0.RELEASE.jar-Spring Expression Language.

Spring-orm-3.2.0.RELEASE.jar -- this jar package contains spring extensions to the Dao feature set (integrated with hibernate ).

Spring-web-3.2.0.RELEASE.jar-contains the core class required to use the Spring framework for Web application development.

Spring-test-3.2.0.RELEASE.jar-simple encapsulation of JUNIT and other testing frameworks

Spring-tx-3.2.0.RELEASE.jar-consistent declarative and programmatic Transaction Management for JDBC, Hibernate, JDO, JPA, etc.

4. Reference URL:

Http://www.cnblogs.com/stefancdy/p/5581702.html,http://blog.csdn.net/weisong530624687/article/details/50888094

Iii. hibernate

1. Download the spring and bibernate folders >>> lib

2. Similarly, we don't need to take all of them. We only need to use all the packages under the jpa folder and the required folder.

3. Explanation of the jar package:

Package under jpa: hibernate-entitymanager-4.3.11.Final.jar --

Packages under required:

Antlr-2.7.7.jar-a tool that accepts the description of the word grammar language and produces programs that recognize the statements in these languages. (Struts already has this package. You do not need to introduce it here, otherwise it will cause a conflict)

Dom4j-1.6.jar -- dom4j XML Parser

Hibernate-commons-annotations-4.0.5.Final.jar-Commons collection class library, (Hibernate annotation)

Hibernate-core-4.3.11.Final.jar-hibernate core package

Hibernate-jpa-2.1-api-1.0.0.Final.jar-Hibernate Persistence

Javassist-3.18.1-GA.jar-conflict, don't introduce (struts has)

Slf4j-api-1.7.12.jar-conflict, don't introduce (struts has)

Jta-1.1.jar-standard JAVA transaction processing interface

Jboss-transaction-api_1.2_spec-1.0.0.Final.jar -- maven dependency (not maven not introduced)

4. Reference URL :......

It's messy. I have made it out of Baidu one by one. Different versions may cause different jar packages. For details about how to interpret all the hibernate jar packages, go to the official website to see the documentation, you can also use Baidu.

4. Others

1. Download from Baidu

2. Explanation of the jar package:

Mysql-connector-java-5.1.7-bin.jar-connect to database

The following packages are not in spring. If you have maven, you can find them in the maven repository. If you do not have them, download them from Baidu:

Com.springsource.com. mchange. v2.c3p0-0.9.1.2.jar -- c3p0 connection pool

Com.springsource.org. aopalliance-1.0.0.jar-aop consortium package

· Com.springsource.org. aspectj. weaver-1.6.8.RELEASE.jar-packages dependent on aop Development

Com.springsource.org. apache. log4j-1.2.15.jar -- spring also needs Logging

Com.springsource.org. apache. commons. logging-1.1.1.jar-integrate other log systems

 

5. In fact, each package also needs to be determined based on its own needs. I also include some optional packages that you may not necessarily use, this is for your reference only.

 

Related Article

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.