📅  最后修改于: 2022-03-11 14:52:35.794000             🧑  作者: Mango
//You should check WebSecurityConfigurerAdapter method like this:
@Override
public void configure(WebSecurity web) throws Exception {
web.ignoring().antMatchers("/webjars/**", "/oauth/**");
}
//remove "/oauth/**" path. otherwise
//.postAccessToken(Principal principal, @RequestParam Map parameters)
//principal will be null.