【笔记】jsp报The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path错误

错误截图

解决办法

1.右击工程=>Build Path=>Configure Build Path... 打开Properties(或者右击工程=>Properties后点击Java Build Path)

2.点击Libraries  后点击右侧Add Libraries

3. eclipse 点击Server Runtime, myeclipse 点击MyEclipse Server Library

4.选择tomcat版本,点击Finish

5.Apply 应用后报错就没了

6.注意:如果remove了 Libraries里的Apache Tomcat,重新添回去,有可能还会报错,需要清理一下项目,maven项目要重新maven install

猜你喜欢

转载自blog.csdn.net/qq_40580023/article/details/84258469