The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
右键项目_>properties_>java build path_>libraries_>add library_>MyEclipse Server Library(有些是显示Server runtime,一样的)
出现以下弹窗
next_>(选择你的服务器,我的是这个),然后finish
导入成功后如下:
然后点击Order and Export_>(把新导入的library勾选即可,如下)
点击OK后就可以啦~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~虽然不影响运行,但是强迫症还是想把这个错误消了