huwhois 5 years ago
parent
commit
f3ddcc5224
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/java/io/renren/modules/app/utils/QRCodeUtils.java

+ 4 - 0
src/main/java/io/renren/modules/app/utils/QRCodeUtils.java

@ -25,7 +25,11 @@ import com.google.zxing.client.j2se.BufferedImageLuminanceSource;
25 25
import com.google.zxing.common.BitMatrix;
26 26
import com.google.zxing.common.HybridBinarizer;
27 27
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
28
import org.springframework.boot.context.properties.ConfigurationProperties;
29
import org.springframework.stereotype.Component;
28 30
31
32
@Component
29 33
public class QRCodeUtils {
30 34
    private static final String CHARSET = "utf-8";
31 35
    private static final String FORMAT_NAME = "JPG";