JSP无端报错处理
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 resolved to a type
- Attribute (width) is obsolete. Its use is discouraged in HTML5
documents.
- javax.servlet.jsp.JspException cannot be resolved to a type
- Attribute (width) is obsolete. Its use is discouraged in HTML5
documents.
- javax.servlet.jsp.JspException cannot be resolved to a type
解决步骤:
1、右键项目-build path
2、选择configure build path...
3、选择 java build path
4、Add Library –> server Runtime -> Click Next
5、选择 Server runtime (Tomcat 8.0不一定选这个哦) –>完成