When you frequently import Web projects in Eclipse, there is a problem with the project type that is not going to be imported, which is a Java project.
Here are the available methods to find:
1, enter the project directory, you can see the. project file, open.
2. Find the <natures...</natures> code snippet.
3, in the 2nd step of the code snippet, add the following label content and save:
<natureorg.eclipse.wst.common.project.facet.core.nature</nature>
<natureorg.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<natureorg.eclipse.jem.workbench.JavaEMFNature</nature>
4. Right-click on the Eclipse project to refresh the project.
5, right-click on the project, enter the property (properties)
6. Click "Project Facets" on the left list item and select "Dynamic Web Module" on the right.
Can be restored
Web Project imports eclipse into Java Project (recovery)