使用方法:1、引入jar包2、写入以下代码OutputStreamoutputStream=response.getOutputStream();Captchacaptcha=ImageCodeFactory.getInstance().setCodeParams(120,45).getCaptcha();System.out.println("code:"+captcha.getChallenge());BufferedImagebufferedImage=captcha.getImage();ImageIO.write(bufferedImage,"png",output