I\'m using Spring Securitys Java Config.
Want to translate the following XML:
If you'd check the documentation of antMatchers method, you will see that enumeration of HttpMethod can be passed as the first parameter.
So something like this should work:
http.authorizeUrls().antMatchers(HttpMethod.POST, "/login").permitAll();