1. <mvc:interceptors>
  2. <mvc:interceptor>
  3. <mvc:mapping path="/**"/>//过滤全部请求
  4. <mvc:exclude-mapping path="/hello.html"/> //除了hello这个请求
  5. <bean class="net.spring.interceptor.TestInterceptor" />
  6. </mvc:interceptor>
  7. </mvc:interceptors>

把http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd改成http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd

不然会报:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'mvc:exclude-mapping'. One 
 of '{"http://www.springframework.org/schema/mvc":mapping, "http://www.springframework.org/
 schema/beans":bean}' is expected.

因为mvc:exclude-mapping 标签不被spring-mvc-3.0.xsd支持,该配置在spring-mvc-3.2.xsd中

最新文章

  1. Java提高篇——理解String 及 String.intern() 在实际中的应用
  2. 水果姐逛水果街Ⅱ codevs 3305
  3. 希尔排序(Shell)
  4. Learning to write a compiler
  5. c#基础-oop(面向对象理解)
  6. 【洛谷P3258】松鼠的新家
  7. 轻量级应用开发之(04)UIScrollView-1
  8. MAC 升级到10.10(OS X Yosemite)下apache+php的配置问题
  9. 10465 - Homer Simpson 贪心
  10. unix io 模型浅析
  11. crowd在更改IP后无法登录的问题
  12. MVC 中使用uploadify上传图片遇到的蛋疼问题
  13. 有用的HTML+CSS片段
  14. jQuery简要dom操作
  15. if(){}else 语句的正确写法以及它的嵌套使用
  16. 移动开发必须要弄明白的问题】详解Eclipse转Android Studio
  17. CJOJ 1087 【NOIP2010】乌龟棋 / Luogu 1541 乌龟棋(动态规划)
  18. eclipse web开发Server配置
  19. js调用摄像头
  20. css换行

热门文章

  1. POI 解析excel 空行问题
  2. ERROR 1222 (21000): The used SELECT statements have a different number of columns :
  3. 去除android手机浏览器中, 按住链接出现border的情况
  4. 模板引擎-freemarker
  5. 18 网络编程-TCP/IP各层介绍(5层模型讲解)
  6. ArcGIS案例学习笔记2_1
  7. 【Java杂记】Equals 和 hashCode
  8. xshell分隔符
  9. input限制数字输入
  10. INI