zoukankan      html  css  js  c++  java
  • 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,修改正确的位置即可(如果是正确的,请重新选择然后确定即可),如下图:

    另:打开Project Structure的方法: 
    Ctrl+Alt+Shift+S

    感谢:http://www.itdadao.com/articles/c15a1162290p0.html

  • 相关阅读:
    swift
    swift
    swift
    swift
    swift
    swift
    swift
    swift
    Swift
    Nginx 访问控制
  • 原文地址:https://www.cnblogs.com/guohu/p/11340966.html
Copyright © 2011-2022 走看看