web3.0 servlet生成验证码


req.getSession().setAttribute("picCode",sb.toString());

//输出图片

ImageIO.write(bufferedImage,"JPG",resp.getOutputStream());

}

}

你可能感兴趣的:(web3.0 servlet生成验证码)