SpringSecurity
phubing
纵使秋风起,人生不言弃。
展开
-
Spring Security 加密和匹配简要过程
SpringSecurity加密和解密过程import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; public class BCryptPasswordEncoderUtils { private static BCryptPasswordEncoder bCryptPasswordEnc...转载 2019-05-10 11:50:03 · 1251 阅读 · 0 评论 -
Spring Security 无法登陆,报错:There is no PasswordEncoder mapped for the id “null”
编写好继承了WebSecurityConfigurerAdapter类的WebSecurityConfig类后,我们需要在configure(AuthenticationManagerBuilder auth) 方法中定义认证用于信息获取来源以及密码校验规则等。(configure函数名字不重要,官方用的好像是configureGlobal(……),重要的是在这个被@EnableWebSec...转载 2019-09-14 13:40:33 · 202 阅读 · 0 评论