I am trying to figure out how configure method works in Spring security. And found out that I can call antMatches() method right on http object without authorizeRequests() like this.
@Override
protected void configure(HttpSecurity http) throws Exception {
http.antMatcher()
// some code
}
As far as I understand authorizeRequests() tells spring that next lines will be restriction of users bases on roles/authorities.
What is the point of calling antMatcher right on http?