解决:Multiple annotations found at this line: - javax.servlet.jsp.JspException cannot be resolve

原因状态

在创建JSP页面的时候出现如下报错

Multiple annotations found at this line: - javax.servlet.jsp.JspException cannot be resolve

解决:Multiple annotations found at this line: - javax.servlet.jsp.JspException cannot be resolve_第1张图片

错误原因:

javax.servlet.http.HttpServlet没有找到Java Build Path。

解决办法:

第一步:右键你的项目选中BuildPath-->Configure Build Path

解决:Multiple annotations found at this line: - javax.servlet.jsp.JspException cannot be resolve_第2张图片

第二步:选择Java Build Path ---> Libraries----Add Library

解决:Multiple annotations found at this line: - javax.servlet.jsp.JspException cannot be resolve_第3张图片

第四步:选择Server Runtime --->next

解决:Multiple annotations found at this line: - javax.servlet.jsp.JspException cannot be resolve_第4张图片

第五步:选择Apache Tomcat v7.0(选择你对应的版本,Tomcat的版本不一样)--->Finish

 

搞定!!不报错!

解决:Multiple annotations found at this line: - javax.servlet.jsp.JspException cannot be resolve_第5张图片

 

你可能感兴趣的:(jsp,Tomcat,jap)