新建maven工程使用webapp插件弹出javax.servlet.http.HttpServlet was not found on the Java Build Path异常

  检查pom.xml文件中是否引用javax.servlet,引用如下所示:

技术分享