1. 程式人生 > >匯入專案tomcat版本不符解決方案

匯入專案tomcat版本不符解決方案

1.eclipse的workspace目錄 ——》專案名 ——》.settings ——》org.eclipse.wst.common.project.facet.core.xml

.

<runtime/>改成自己的tomcat版本

<installed facet="jst.web" version=" "/> 改成自己的版本

 

 如何檢視自己本來的version版本呢?

右鍵eclipse正常執行的專案 ——》Properties

 發現自己Dynamic Web Module版本是3.1,因此將version=“3.1”便好

 

2.eclipse的workspace目錄 ——》專案名 ——》WebContent ——》WEB-INF ——》web.xml

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">

最後的3_1和3.1改為自己的Dynamic Web Module版本.