Https://www.cnblogs.com/zhangzhen894095789/p/6623041.html
zxing Realization of two-dimensional code generation and parsing
Two dimensional code zxing
The generation and analysis of two-dimensional codes. There are many ways. I choose to use a big brand, Google boss Zxing.
The GitHub link is (I used 3.0.0, already NiO)
https://github.com/zxing/zxing/tree/zxing-3.0.0
Java code//where the output image and the class reading the image are in the core package Multiformatreader Multiformatwriter//generating matrix classes in the Javase package Matrixtoimagew Riter
The configuration in Pom.xml is XML code <project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi= http:/ /www.w3.org/2001/xmlschema-instance " xsi:schemalocation=" http:// Maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd "> <modelVersion>4.0.0</modelVersion> < groupid>com.shihy</groupid> <artifactid>qrcode</ artifactid> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>qrcode</name> <url>http://maven.apache.org</url > <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties> <dependencies> <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.0.0</version > </dependency> <dependency> <groupId>com.google.zxing</groupId> <artifactid>javase</artifactid> <version>3.0.0</version> </dependency> <dependency> <groupid>junit&l