List of usage examples for org.springframework.security.web.util.matcher NegatedRequestMatcher NegatedRequestMatcher
public NegatedRequestMatcher(RequestMatcher requestMatcher)
From source file:org.moserp.common.security.TestSecurityConfiguration.java
@Override protected void configure(HttpSecurity http) throws Exception { NegatedRequestMatcher matcher = new NegatedRequestMatcher(new AntPathRequestMatcher("/login", "POST")); http.csrf().disable().authorizeRequests().requestMatchers(matcher).authenticated().and().httpBasic(); }