Cannot pass a null GrantedAuthority collection

                                                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");
}

 

你可能感兴趣的:(Cannot pass a null GrantedAuthority collection)