Eclipse import MyEclipse Web project

Operating tools: Eclipse3.6, MyEclipse6.5, JDK6, Tomcat7

 

1. Import the MyEclipse project into Eclipse.

2. Right-click the project-->properties-->Project factes-->Check Dynamic Web Module, Java, JavaScript, and check runtime-tomcat.

Eclipse will be generated in the project's .settings directory

org.eclipse.wst.common.component, org.eclipse.wst.common.project.facet.core.xml two files.

3. Modify the org.eclipse.wst.common.component file

<wb-resource deploy-path="/" source-path="/WebRoot"/>

Refresh the project, delete the WebContent directory.

4. Modify Context Root: Right-click the project -->properties-->Web Project settings-->Context root.

5. Publish and run in Tomcat.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326526625&siteId=291194637