类 CaptchaUtil

java.lang.Object
com.mbap.auth.util.CaptchaUtil

public class CaptchaUtil extends Object
  • 构造器详细资料

    • CaptchaUtil

      public CaptchaUtil()
  • 方法详细资料

    • getCaptcha

      public static com.mbap.core.dto.CaptchaDTO getCaptcha(com.mbap.core.dto.CaptchaDTO captchaDto)
      参数:
      captchaDto -
    • getNonceByRange

      public static int getNonceByRange(int start, int end)
      参数:
      start -
      end -
      返回:
      int
    • queryFileList

      public static List<File> queryFileList(String path)
      获取图片,由于spring boot打包成jar之后,获取到获取不到resources里头的图片,对此进行处理
      参数:
      path -
      返回:
    • imageResize

      public static BufferedImage imageResize(BufferedImage bufferedImage, int width, int height)
      参数:
      bufferedImage -
      width -
      height -
      返回:
      java.awt.image.BufferedImage
    • toBase64

      public static String toBase64(BufferedImage bufferedImage, String type)
      参数:
      bufferedImage -
      type -
      返回:
      java.lang.String