28.3.2 单点登陆
security:
oauth2:
...
resource:
userInfoUri: https://api.github.com/user
preferTokenInfo: false@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
public void init(WebSecurity web) {
web.ignore("/");
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.antMatcher("/**").authorizeRequests().anyRequest().authenticated();
}
}Last updated
Was this helpful?