1、导入项目后,jsp页面报错:javax.servlet.jsp.JspException cannot be resolved to a type
解决方案:右键项目–properties选择Targeted Runtimes,选择你的运行环境,我选择Apache Tomcat v9.0,Apply.
2、applicationContext报错:
Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘mvc:annotation-driven’.
- schema_reference.4: Failed to read schema document ‘http://www.springframework.org/schema/mvc/spring- mvc.xsd’, because
- could not find the document; 2) the document could not be read; 3)
the root element of the document is not xsd:schema.
解决方法:错误提示:未能读取架构文档’ http://www . spring framework . org/schema/MVC/spring-mvc.xsd ’
http://www.springframework.org/schema/mvc/spring-mvc.xsd
将此行出错代码删掉,再贴上,重新保存. O