项目集成字符验证码、运算验证码、滑动验证码
具有代码简洁、注释完备、配置灵活、易于上手的特点,适合所有开发者集成
- 字符验证码
- 运算验证码
- 滑动验证码
- 快速访问: http://localhost:8080/captcha/index
- 字符验证码: http://localhost:8080/captcha/index?type=char
- 运算验证码: http://localhost:8080/captcha/index?type=operation
- 滑动验证码: http://localhost:8080/captcha/index?type=slide
字符验证码、运算验证码、滑动验证码有工具类,开箱即用;同时,字符验证码、运算验证码集成了google的kaptcha验证码
- 字符验证码:
默认使用kaptcha验证码。开箱即用,不需要任何配置就可以访问 - 运算验证码:
默认使用kaptcha验证码。开箱即用,已经将运算器类配置好。如果需要更改和自定义运算方法请移步:
config.selfimpr.captcha -> config -> CaptchaConfig -> getKaptchaBeanMath() - 滑动验证码:
需要将自己的验证码图片配置到application.yml文件路径中。相关的验证码图片和模板在以下位置: 项目中resources -> static -> targets和templates目录