In a web.xml url-pattern matcher is there a way to exclude URLs?

前端 未结 4 874
迷失自我
迷失自我 2020-12-13 19:43

I wrote a filter that needs to be invoked every time a url on my site is accessed EXCEPT the CSS, JS, and IMAGE files. So in my definition I\'d like to have something like

4条回答
  •  悲哀的现实
    2020-12-13 20:33

    The URL pattern mapping does not support exclusions. This is a limitation of the Servlet specification. You can try the manual workaround posted by Mr.J4mes.

提交回复
热议问题