EasyCaptcha验证码的核心功能使用
发布时间
阅读量:
阅读量

依赖关系分析
<dependency>
<groupId>com.github.whvcse</groupId>
<artifactId>easy-captcha</artifactId>
<version>1.6.2</version>
</dependency>
2,基本使用
@RequestMapping("/captcha123")
public void captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
// 设置请求头为输出图片类型
response.setContentType("image/gif");
response.setHeader("Pragma", "No-cache");
r
全部评论 (0)
还没有任何评论哟~
