The superclass"javax.servlet.http.HttpServlet"was not found on theJavaBuildPath

在用maven新建javaweb项目下的index.jsp下的错误

解决方案:
在pom文件下输入:

javax.servlet
javax.servlet-api
3.1.0
provided

最后附上参考链接:
http://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build

你可能感兴趣的:(The superclass"javax.servlet.http.HttpServlet"was not found on theJavaBuildPath)