在spring配置文件里配置 filterChainDefinitions攔截器失效
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
??<property name="securityManager" ref="securityManager" />
??<property name="loginUrl" value="/login.jsp" />
??<property name="successUrl" value="/loginSuccess/index" />
??<property name="unauthorizedUrl" value="/login.jsp" />
??<property name="filterChainDefinitions">
???<value>
? ? ? ? ?? /statics/**=anon
? ? ? ? ? /faceService/dologin2=anon
? ? ? ? ? /firstEnterprise/**=authc,roles[quality_directer]
? ? ? ? ? /index.jsp=authc
? ? ? ? ? /** = anon
???</value>
??</property>
</bean>
這樣配置,然后訪問對應(yīng)的路徑并沒有攔截,感覺配置沒有起到作用,請教一下這種情況一般是什么原因呢
ps: securityManager是沒問題的。還有我試過在ini文件配置,然后讀取這個ini文件也沒有效果
2018-11-08
/** = anon這個配置好像是任何人都可訪問吧