Deployment issues when the Eclipse Java Web project references other Java projects

Source: Internet
Author: User
Tags java web

Requirements: Java Web projects need to invoke other Java projects

Because the referenced project may need to be debugged and not referenced by the jar package, it is a direct reference to the project;

Here's how to import a Java project into a Java project:

1. Right-click the project----->built path----->projects-----> Add-----> select the item to be referenced and modify the native library location

2 , Right-click the project ----; properties-----, Deployment Assembly------>add-------->project------> Select the item to be referenced

Note: If it is a Web project, its deploy path defaults to **.war and needs to be changed to **.jar

Default


Change to **.jar



3. Modify the Deployment Assembly for the incoming package

Like I introduced the MAVEN-SPRINGMVC-SPRINGJDBC project.

< Span style= "Color:rgb (51,51,51); font-family: ' Microsoft Yahei '; font-size:14.2857151031494px; Line-height:26px "> Right click maven-springmvc-springjdbc project ----; properties -----; deployment Assembly     Modify the Deploy path  of the ingest package;


* The introduction of Web projects requires particular attention to whether to adjust the deploy path

Deployment issues when the Eclipse Java Web project references other Java projects

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.