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