Build struts2 + spring + hibernate (1): import the jar package

Source: Internet
Author: User

Presets: Struts-2.2.1.1, hibernate-distribution-3.6.1.Final, spring-framework-2.5.6-with-docs, spring-framework-2.5.6-with-dependencies.

1. Create a WEB Project: toyweb.


2. Copy the jar package of struts2 to the webroot \ WEB-INF \ lib directory:

Commons-fileupload-1.2.1.jar

Commons-io-1.3.2.jar

Freemarker-2.3.16.jar

Javassist-3.7.ga.jar

Ognl-3.0.jar

Struts2-core-2.2.1.1.jar

Xwork-core-2.2.1.1.jar


3. Copy the jar package of spring:

Spring. Jar

The struts2-spring-plugin-2.2.1.1.jar is in the Struts-2.2.1.1 \ lib directory

The commons-logging.jar is located in the Lib \ Jakarta-commons directory


4. Copy the hibernate jar package: In the hibernate-distribution-3.6.1.Final directory, lib directory under the required and JPA directory respectively

Hibernate3.jar

-----------

Antlr-2.7.6.jar

Commons-collections-3.1.jar

Dom4j-1.6.1.jar

The javassist-3.12.0.GA.jar is repeated with struts2.

Jta-1.1.jar

Slf4j-api-1.6.1.jar

-----------

Hibernate-jpa-2.0-api-1.0.0.Final.jar

--------------

Slf4j-nop-1.6.1.jarDownload from http://www.slf4j.org/download.html to obtain


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.