需要添加applicationContext-security.xml文件中添加以下配置
其中myFilterSecurityInterceptor为自定义扩展的AbstractSecurityInterceptor
另外一个关键的地方时以上的配置文件必须在
配置以前,如果位置不对,也不会产生效果。
参考:[url]http://hi.baidu.com/gestapo8/item/4e78d3d78dae3095270ae745[/url]
<beans:bean id="customWebInvocationPrivilegeEvaluator" class="org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator">
<beans:constructor-arg name="securityInterceptor" ref="myFilterSecurityInterceptor" />
</beans:bean>
其中myFilterSecurityInterceptor为自定义扩展的AbstractSecurityInterceptor
另外一个关键的地方时以上的配置文件必须在
<http auto-config="true" access-denied-page="/403.html">
配置以前,如果位置不对,也不会产生效果。
参考:[url]http://hi.baidu.com/gestapo8/item/4e78d3d78dae3095270ae745[/url]