拦截请求
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/spitters/me").authenticated()
.antMatchers(HttpMethod.POST, "/spittles").authenticated()
.anyRequest().permitAll();
}.antMatchers("/spitter/**").authenticated();.antMatchers("/spitter/**", "/spittles/mine").authenticated();
方法
能够做什么
Last updated