1. Caused by: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 60; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. 多半是配置文件缺少链接找不到资源引起的,或是springmvc 版本和xsd版本不一致引起
项目是使用spring MVC (1)在浏览器中访问,后台总报错: No mapping found for HTTP request with URI [/exam3/welcome] in DispatcherServlet with name 'spring2' 查了好半天,才发现是controller 没有扫描到. 我是使用的注解. spring mvc配置文件如下: <?xml version="1.0" encoding="UTF-8"?>