spring1 的acegi里,今天在启动的时候,tomcat没有报错。不过在请求受保护的注册页面时tomcat提示/j_acegi_security_check出错。然后检查了,发现没有在web.xml里配置这个路径,于是在web.xml加入:
<filter>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<filter-class>net.sf.acegisecurity.util.FilterToBeanProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>net.sf.acegisecurity.util.FilterChainProxy</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>/j_acegi_security_check</url-pattern>
</filter-mapping>
就是acegi保护并认识这3类的url,但是再次发出页面请求的时候,tomcat没有报错。不过页面一直在读取进度,没有显示,郁闷喇
posted on 2007-09-21 09:11
lzj520 阅读(215)
评论(0) 编辑 收藏 所属分类:
Spring 、
个人学习日记