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
在WEB-INF目录下创建index.jsp
代码出现错误
1、在出现此错误的项目上单击鼠标右键>Build Path>Configure Build Path…
2、java Build Path>Libraries>Add Variable…>Next
3、Server Runtime>Next
4、添加"Apache Tomcat v8.0">Finish
5、Order and Export>选择 “Web… EAR Apache Tomcat v8.0 ”打勾>Apply and Close
6、完成
亦或是没添加Tomcat8