ByteArrayOutputStream baos = new ByteArrayOutputStream();
Captcha captcha = createCaptcha();
ImageIO.write(captcha.getImage(), "png", baos);
logger.info("图形验证码生成成功【"+captcha.getWord()+"】");byte[] bytes = baos.toByteArray();
String captCode = getUUIDStr();
JedisPoolClient.getInstance().set(captCode,captcha.getWord(),CAPTCHA_OVERDUE_TIMES);
responseJson.addParam("captcha",bytes);
data:image/png;base64,