在这里插入代码片public String code() throws WriterException, IOException {
//二维码宽高
int width = 200;
int height = 200;
Hashtable<EncodeHintType, Object> hints = new Hashtable<>();
hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L);
hints.put(EncodeHintType.CHARACTER_SET, "UTF-8");
hints.put(EncodeHintType.MARGIN, 1); //设置白边
String text =
二维码生成图片写入
最新推荐文章于 2022-07-05 17:01:55 发布