增加验证码类型设置功能(纯数字、纯字母)

This commit is contained in:
synchronized 2018-07-27 17:20:37 +08:00
parent 71e73ee516
commit fda509dfe3
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ public class Test {
public class Test {
public static void main(String[] args) {
OutputStream outputStream = new FileOutputStream(new File("D:/a/aa.gif"));
OutputStream outputStream = new FileOutputStream(new File("D:/a/aa.png"));
// 三个参数分别为宽、高、位数
SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 5);