For example: Import a jdk1.8 + Tomcat 8 project into Jdk1.7+tomcat 7 and deploy
A small red fork appears when you import a Web project into your hands first
First click on the item in the right mouse button--"Select Properties
On the right side of the pop-out window, select the "Libraries" tab, select the place where the Red fork appears, and click "Edit ..." on the right. Button
Change it to your eclipse's operating environment JDK1.8-->JDK 1.7, Tomcat 8--and Tomcat 7
2. If all of the above steps are done, the Little Red fork disappears, but when you publish the project to Tomcat, you find the selected
The button posted to Tomcat 7 is grayed out, and this is where Eclipse's "project storage" is supposed to be found--"Find this item"
--"Click Open File Project Folder"--"Find the. Settings folder, click"-"Find the Org.eclipse.wst.common.project.facet.core.xml file"
--"Notepad open will be inside"
<?XML version= "1.0" encoding= "UTF-8"?><Faceted-project> <Runtimename= "Apache Tomcat v8.0"/> <fixedfacet= "Wst.jsdt.web"/> <fixedfacet= "Jst.web"/> <fixedfacet= "Java"/> <installedfacet= "Java"version= "1.8"/> <installedfacet= "Jst.web"version= "3.1"/> <installedfacet= "Wst.jsdt.web"version= "1.0"/></Faceted-project>
Modify the appropriate version and environment
For example, modify the following
<?XML version= "1.0" encoding= "UTF-8"?><Faceted-project> <Runtimename= "Apache Tomcat v7.0"/> <fixedfacet= "Jst.web"/> <fixedfacet= "Wst.jsdt.web"/> <fixedfacet= "Java"/> <installedfacet= "Java"version= "1.8"/> <installedfacet= "Jst.web"version= "3.0"/> <installedfacet= "Wst.jsdt.web"version= "1.0"/></Faceted-project>
Then it will be released!!!!
About importing items into eclipse a small red fork in the resolution note