Intellij IDEA 中 web.xml 报错 Servlet should have a mapping

idea中web.xml报错 Servlet should have a mapping 配置springmvc时,报错,实际mapping已经写了,错误截图如下: 搜索无果,后来发现是工程的web.xml位置配置错误,因为我之前换过根目录位置。 修改方法: 打开Project Structure界面,Modules>Web>Deployment descriptor,修改正确的位置即可,如下图:
相关文章
相关标签/搜索