读书人

spring security 3.0 运用 jcaptcha

发布时间: 2012-10-09 10:21:45 作者: rapoo

spring security 3.0 使用 jcaptcha
1. 引入附件内JAR
2. 配置security.xml

<http auto-config="true">
........
<remember-me />
<custom-filter ref="captchaAuthenticationFilter" before="FORM_LOGIN_FILTER" />
</http>

<beans:bean id="captchaAuthenticationFilter"
ref="imageCaptchaService" />
<beans:property name="authenticationFailureUrl" value="/login.action" />
</beans:bean>

3. login.html增加<input type='text' name='j_captcha'>

1 楼 superzhouych 2011-10-09 请问您有JcaptchaAuthenticationFilter的源代码吗?

读书人网 >软件架构设计

热点推荐