1.获取登录用户名
SecurityContextHolder.getContext().getAuthentication().getName();
2.BCrypt加密算法
BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder(); seller.setPassword(bCryptPasswordEncoder.encode(“需要加密的密码”));
1.获取登录用户名
SecurityContextHolder.getContext().getAuthentication().getName();
2.BCrypt加密算法
BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder(); seller.setPassword(bCryptPasswordEncoder.encode(“需要加密的密码”));