Filter mapping url-pattern that excludes subdirectories

前端 未结 5 1171
遥遥无期
遥遥无期 2020-12-30 13:48

Is there any way to make a filtermapping not include subdirectories?

For example.

I have .xhtml files in my context root, and I also have a subfolder named \

5条回答
  •  感情败类
    2020-12-30 14:17

    Some containers (like resin) define an extension to filter mapping definition in web.xml which allows specifying url-regexp which allows matching the urls based on regular expression. (reference). See if your container has something like this.

提交回复
热议问题