工具类
文章平均质量分 63
zhuhaoyu6666
热爱编程、热爱生活、喜欢挑战
展开
-
日志切面类
import cn.hutool.core.util.StrUtil;import cn.hutool.core.util.URLUtil;import com.alibaba.fastjson.JSON;import io.swagger.annotations.ApiOperation;import lombok.extern.slf4j.Slf4j;import org.aspectj.lang.ProceedingJ.原创 2022-03-22 14:46:22 · 585 阅读 · 0 评论 -
雪花算法2-18位数字
public class IDWorker { /** * 起始的时间戳 */ private final static long START_STMP = 1480166465631L; /** * 每一部分占用的位数 */ private final static long SEQUENCE_BIT = 12; //序列号占用的位数 private final static long MACHINE_BIT = 5; .原创 2022-03-12 11:45:00 · 518 阅读 · 0 评论 -
加解密--BCryptPasswordEncoder
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;public class PasswordEncoderUtil { public static Boolean matches(String raw, String encoded) { return new BCryptPasswordEncoder().matches(raw, encoded); } .原创 2022-02-25 10:02:55 · 1498 阅读 · 0 评论 -
工具类001之注册时密码加密及登录时登录
用于用户注册时密码的加密以及登录时密码的匹配import lombok.extern.slf4j.Slf4j;import org.springframework.stereotype.Component;import org.springframework.util.DigestUtils;@Slf4j//@Componentpublic class Md5Util {...原创 2020-04-19 09:51:21 · 164 阅读 · 0 评论