eclipse 出现The import javax.servlet cannot be resol

时间:2019-06-06 09:37:16 类型:JAVA
字号:    

eclipse 出现The import javax.servlet cannot be resolved 的错误如下:

解决方法如下:

  在Eclipse中,右击项目,选择Build Path->configure build path->Libraries->Add External JARs,找到你计算机中tomcat的解压路径,在lib文件夹下选中"servlet-api.jar",添加点击“确定”