eclipse提示:"The superclass “javax.servlet.http.HttpServlet” was not found on the Java"解决办法 新建jsp页面老提示: Multiple annotations found at this line: The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

步骤: 1、右键项目-build path

eclipse在有的workspace可以正常代码提示,有的就没法提示类的补全_Java

2、选择configure build path…

eclipse在有的workspace可以正常代码提示,有的就没法提示类的补全_Server_02

3、选择 java build path

eclipse在有的workspace可以正常代码提示,有的就没法提示类的补全_java_03

4、Add Library –> server Runtime -> Next

eclipse在有的workspace可以正常代码提示,有的就没法提示类的补全_Server_04

5、选择 Server runtime (我的是 Tomcat 8.5) –>完成

eclipse在有的workspace可以正常代码提示,有的就没法提示类的补全_java_05