实现工具类验证码的的主要步骤:
1、导入工具类的包ValidateCode
2、主要代码:
ValidateCode vc=new ValidateCode(110,25,4,9);
vc.write(response.getOutputStream());
参数的意思依次是:长度、宽度、验证码中数字个数、干扰线条数。
实现工具类验证码的的主要步骤:
1、导入工具类的包ValidateCode
2、主要代码:
ValidateCode vc=new ValidateCode(110,25,4,9);
vc.write(response.getOutputStream());
参数的意思依次是:长度、宽度、验证码中数字个数、干扰线条数。