解决Bug------idea工程中web.xml报错Servlet should have a mapping

 今天学了个新东西想写个demo练练手,直接用开Maven项目没有选择web模板,然后就报了个奇奇怪怪的错误。

解决Bug------idea工程中web.xml报错Servlet should have a mapping

百度之后发现是因为配置问题,是因为工程的web.xml位置没有配置好 。

解决办法:

解决Bug------idea工程中web.xml报错Servlet should have a mapping

解决Bug------idea工程中web.xml报错Servlet should have a mapping

解决Bug------idea工程中web.xml报错Servlet should have a mapping

问题解决。