📜  没有客户端身份验证.尝试添加适当的身份验证过滤器 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:35.794000             🧑  作者: Mango

代码示例1
//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.