答复: 请教acegi问题 登陆后跳转到 http://127.0.0.1/favicon.i

我也碰到过同样的问题,我的做法是在
   <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
   中去掉          <!--   <ref local="anonymousAuthenticationProvider"/>
<ref local="rememberMeAuthenticationProvider"/>  -->
也可能你的配置中没有这两个bean,把不必要的bean去掉,我这里只留一个基于数据库的认证daoAuthenticationProvider
还有就是更改 <bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">中的<property name="defaultTargetUrl"><value>/default.action</value></property>使其跳转到有意义的地方,可以是默认页,做如上修改后问题解觉了,不知道具体是哪个影响的,先给你一个小提示,等项目完成了再去仔细研究.

你可能感兴趣的:(bean,Acegi)