The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

在Eclipse中导入Maven Web Project后所有的都没有问题,唯独jsp文件一直报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path,最后找到的解决办法如下:

The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path_第1张图片

在Runtime 选项卡,勾上你所配置的Tomcat,点击OK,错误就不见啦!

参考资料:
http://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build

你可能感兴趣的:(eclipse,HttpServle)