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的源代码吗?