package com.kidgrow.common.config;
|
|
import org.springframework.context.annotation.Bean;
|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
import org.springframework.security.crypto.password.PasswordEncoder;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 密码工具类<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/13 16:59 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
public class DefaultPasswordConfig {
|
/**
|
* 装配BCryptPasswordEncoder用户密码的匹配
|
* @return
|
*/
|
@Bean
|
public PasswordEncoder passwordEncoder() {
|
return new BCryptPasswordEncoder();
|
}
|
}
|