code
import com.alibaba.fastjson.JSONObject;
import com.google.zxing.*;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.util.HashMap;
import java.util.Map;
public class QRCodeGenerator {
@Test
public void generateQRCode() throws WriterException, IOException {
JSONObject jsonObject = new JSONObject();
jsonObject.put("name","张三丰");
jsonObject.put("age","24"