hejianhao
2026-08-19 4fa3099ff1d2fc02bbbfafcda7fded28f609f6ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.tcm.training.admin.config;
 
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
 
@Configuration
public class SecurityBeansConfig {
 
    @Bean
    public BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}