web项目的编译过程中,可能会碰到的问题

HttpServlet cannot be resolved to a type的解决方法
原本正确的构造方法,却突然出现了错误:
这时候需要重新配置tomcat,清除servers缓存
具体方法;参考:如何配置tomcat

之后,右键要修改的项目
—>properties
—>Java Build Path
—>Add External JARs
选择 servlet-api.jar
HttpServlet cannot be resolved to a type的解决方法
HttpServlet cannot be resolved to a type的解决方法
问题解决

相关文章: