Spring security error hasRole User

.antMatchers("/user/**").hasRole("USER")

This above is the main reason for the error. 

This should be changed to 

 .antMatchers("/user/**").hasAuthority("USER")

Comments

Popular posts from this blog