Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未为根URL运行Spring筛选器_Spring_Spring Mvc_Spring Security_Servlet Filters - Fatal编程技术网

未为根URL运行Spring筛选器

未为根URL运行Spring筛选器,spring,spring-mvc,spring-security,servlet-filters,Spring,Spring Mvc,Spring Security,Servlet Filters,在Spring配置中,我有: <beans:bean id="myFilter" class="foo.bar.MyFilter" /> <http> <custom-filter ref="myFilter" after="CHANNEL_FILTER"/> 显然,这是Spring3.0.x的一个限制,在Spring3.0.x中,过滤器将匹配的URL硬编码为/**(因此,他

在Spring配置中,我有:

<beans:bean id="myFilter" class="foo.bar.MyFilter" />
<http>
  <custom-filter ref="myFilter" after="CHANNEL_FILTER"/>

显然,这是Spring3.0.x的一个限制,在Spring3.0.x中,过滤器将匹配的URL硬编码为/**(因此,他们在所有情况下都希望使用哈希,而在上述情况下,实际URL中不会有哈希)。当然,“哈希”是指“斜杠”。
DEBUG o.s.security.web.FilterChainProxy - Candidate is: ''; pattern is /**; matched=false