req.getSession().setAttribute("picCode",sb.toString());
//输出图片
ImageIO.write(bufferedImage,"JPG",resp.getOutputStream());
}
}
req.getSession().setAttribute("picCode",sb.toString());
//输出图片
ImageIO.write(bufferedImage,"JPG",resp.getOutputStream());
}
}
本文标题:web3.0 servlet生成验证码
本文链接:https://www.haomeiwen.com/subject/gfflrttx.html
网友评论