idea工程中web.xml報錯Servlet should have a mapping

搭建ssm工程過程中web.xml報錯:Servlet should have a mapping ....但是mapping已經配置好了...如下圖: 搜索無果,後來發現是工程的web.xml位置配置錯誤,因爲我之前換過根目錄位置。  修改方法:  打開Project Structure界面,Modules>Web>Deployment descriptor,修改正確的位置即可,如下圖: 另:打
相關文章
相關標籤/搜索