二维码三部曲,这三个就可以直接生成二维码了到页面了
工具类
public class QuickMarkUtil {
/**
37 * 生成包含字符串信息的二维码图片
38 * @param outputStream 文件输出流路径
39 * @param content 二维码携带信息
40 * @param qrCodeSize 二维码图片大小
41 * @param imageFormat 二维码的格式
42 * @throws WriterException
43 * @throws IOException
44 */
public static boolean createQrCode(OutputStream outputStream, String content, int qrCodeSize, String imageFormat) throws WriterException, IOException{
//设置二维码纠错级别MAP
Hashtable<EncodeHintType, ErrorCorrectionLevel> hintMap = new Hashtable<EncodeHintType, ErrorCorrectionLevel>();
&n