SpringBoot+BCrypt实现简单的密码加密
首先引入Maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
配置类
package com.example.demo.config;
import org.springframework.context.annotation.Bean;
import org.springframework