配置NutFilter需要忽略的路径

我们需要实现的功能是: /druid或/rs下的路径,就无条件跳过NutFilter

打开web.xml,配置exclusions

  1. <filter>
  2. <filter-name>nutz</filter-name>
  3. <filter-class>org.nutz.mvc.NutFilter</filter-class>
  4. <init-param>
  5. <param-name>modules</param-name>
  6. <param-value>net.wendal.nutzbook.MainModule</param-value>
  7. </init-param>
  8. <init-param>
  9. <param-name>exclusions</param-name>
  10. <param-value>/rs/*,/druid/*</param-value>
  11. </init-param>
  12. </filter>

启动tomcat, 应无异常.