Filter mapping url-pattern that excludes subdirectories

前端 未结 5 1170
遥遥无期
遥遥无期 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:06

    You can add a url-mapping value for every file you have in the context root, therefore the filter will apply to those files but none to the files in the test folder (actually it will only apply to those specific files). The following worked for me

    /index.faces
    

提交回复
热议问题