BCryptPasswordEncoder 对象主要用于对用户的密码进行加密处理 文章目录 一、加密演示 二、实例演示用户密码加密 三、使用配置文件 SecurityConfig 一、加密演示 import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; public class BCryptPasswordEncoderUtils { //实例化对象 private static BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEnc