在我们创建新的web项目的时候,通过eclipse创建时,当我们新增一个jsp页面的时候,
经常会出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”
这种错误,虽然项目不报错,但是看着这个错误也是非常的不好。
具体的解决方法:
1、项目右键:build Path -->Configure Build Path
2、选择图中Libraies
3、选择 Server RunTime
4、next 选择 已经存在的tomcat版本
5、点击Finish
6、刷新项目,错误就消失了