Can we use regular expressions in web.xml URL patterns?

前端 未结 6 2077
我在风中等你
我在风中等你 2020-11-27 05:02

I am writing a filter to do a specific task but I am unable to set a specific url pattern to my filter. My filter mapping is as follows:



        
6条回答
  •  鱼传尺愫
    2020-11-27 05:24

    in web.xml for servlet mapping , You can apply wildcard only at the start or the end, if you try to apply the wildcard in between the mapping will not be picked.

提交回复
热议问题