首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

spring security 3.0 运用 jcaptcha

2012-10-09 
spring security 3.0 使用 jcaptcha1. 引入附件内JAR2. 配置security.xmlhttp auto-configtrue......

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

热点排行