使用Elicpse导入web项目时servvlet页面报错:The import javax.servlet cannot be resolved
jsp页面报错:Multiple annotations found at this line:
- javax.servlet.jsp.JspException cannot be resolved to
a type
- javax.servlet.jsp.JspException cannot be resolved to
a type
解决办法:
右击项目,选择Build Path->configure build path->Libraries->Add External JARs,找到本地下载的tomcat的解压路径下lib文件夹,选中“servlet-api.jar”和“jsp-api.jar”,添加点击确定即可
关于导入web项目导包报错The import javax.servlet cannot be resolved和jsp页面报错
最新推荐文章于 2021-10-06 21:28:16 发布