When I submitted the code yesterday, my eclipse was exhausted and found that the jar package inside the Web App libraries was not automatically added to the Web app libraries, causing all the previously configured items to be manually reconfigured and searched online. A workaround was found:
Reference link http://blog.csdn.net/zhengzhb/article/details/6956130
Navigate to the project root. Settings inside the org.eclipse.wst.common.component, the following paste into the inside to save, you can detect the web-inf/lib inside all the jar package.
<?xml version= "1.0" encoding= "UTF-8"? ><project-modules id= "Modulecoreid" project-version= "1.5.0" > <wb-module deploy-name = "Test" > <wb-resource deploy-path= "/" Source-path= "/webcontent/"/> <wb-resource Deploy-path= "/webcontent/web-inf/classes" source-path= "WEBCONTENT/WEB-INF/SRC"/> <property name= "Context-root" value= "/WebContent"/> <property name= "Java-output-path" value= "/WebContent/classes" /> </wb-module></project-modules>
Look carefully, through the modification of this document, in the project properties inside the deployment assembly inside more than two projects, the project is mainly based on these two items (visual inspection is just the <property name= "Context-root "Value="/webcontent "/>" to locate the project's Web App libraries.
Resolves an Eclipse Java build path in which the Web APP libraries cannot automatically find the Web-inf lib directory