Spring Security实现用户动态菜单代码
1、SpringSecurity实现用户密码的加密和密码对比的方法,encode()方法用来加密数据,matches()用来对比加密数据和字符串是否一致
import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework....
原创
2019-11-29 19:48:35 ·
1312 阅读 ·
1 评论