Original address: http://www.cnblogs.com/liuhongfeng/p/5044250.html?utm_source=tuicool&utm_medium=referral
1. Scenario reproduction.
Some people prefer to use Myeclipse to develop, some people prefer to use eclipse to develop. But there is a problem. There is a small problem when the project in Myeclipse is imported.
as follows:
2. Explain the problem
The imported project not only shows up outside the package, but also cannot be deployed into tomcat.
So what configuration do we need?
3. Deal with problems.
1. Import the project created under MyEclipse
2. Turn the project into a Web project, right-click on the project-->Properties-->Select Project Facets.
3. Select the two red lines (java and Dynamic Web Module) and javaScript.
4. Click OK to save. The effect of the project directory structure is as follows:
5. Delete the webcontent directory.
The effect is as follows:
6. Remove the webcontent directory from the configuration.
Right-click on the project-->Properties-->Select Deployment Assembly-->Select the Remove button on the right of WebContent.
7. Add the webroot directory.
Click the Add button, select Folder-->Next
Add the project to Tomcat and it will work.
Configuration is complete.