SpringMVC登陆拦截器相关问题

来源:互联网 发布:mysql 分组 每组个数 编辑:程序博客网 时间:2024/04/30 04:42

Q1.元素 "mvc:annotation-driven" 的前缀 "mvc"未绑定

办法:在spring-servlet.xml文件里使用<mvc>开头的标签时,忘记引入了命名空间。在xml的beans里面加入如下代码即可

xmlns:mvc="http://www.springframework.org/schema/mvc"

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

0 0
原创粉丝点击