右击项目,选择Build Path->configure build path
The import javax.servlet cannot be resolved 的解决方法
Libraries->Add External JARs,点击classpath
找到计算机中tomcat的解压路径,在lib文件夹下选中"servlet-api.jar",apply and closeThe import javax.servlet cannot be resolved 的解决方法

相关文章: