idea中web.xml报错 Servlet should have a mapping
配置springmvc时web.xml报错,错误代码如图(随便找的,我自己的已经解决了_),实际mapping已经写了,看了****和Stack Overflow都有解释但比较麻烦,实测将webapp整个目录删掉重新再写一遍既可。应该是idea的问题。
另外一种错误的可能参照下面的文章解决。
https://blog.****.net/haerxiong/article/details/55666872