Q1.元素 "mvc:annotation-driven" 的前缀 "mvc"未绑定
办法:在spring-servlet.xml文件里使用<mvc>开头的标签时,忘记引入了命名空间。在xml的beans里面加入如下代码即可
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
Q2.publicId+systemId+之间需要有空格
办法:就是前一个是publicID,后一个是SystemId,是一一对应的
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
Q3:引入spirng-webmvc.jar、
jackson.jar