Cannot pass a null GrantedAuthority collection
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication()
.withUser("buzz").password("123")
//此时就会报出异常信息为:Cannot pass a null GrantedAuthority collection
//.authorities("ROLE_USER")
.and()
.withUser("woody").password("456").authorities("ROLE_USER");
}
221

被折叠的 条评论
为什么被折叠?



