<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.7.5</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.3.3</version>
</dependency>
public void erweima(HttpServletResponse response) throws IOException {
QrCodeUtil.generate("https://blog.csdn.net/leinminna/article/details/102932498",300,300,"jpg",response.getOutputStream());
}