项目场景:
在 springMVC.xml 文件中添加标签
问题描述:
通配符的匹配很全面, 但无法找到元素 ’ *** ’ 的声明。
原因分析:
虽然在 xml 文件上方声明了 mvc,但没有配置此声明对应的文件信息
xsi:schemaLocation 中缺少相关 url
解决方案:
mvc:annotation-driven
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd