title: Spring Security: Java Config: How to add the method type?
body: <p>I'm using Spring Securitys Java Config.</p>
  
  <p>Want to translate the following <strong>XML</strong>:</p>
  
  <pre><code>&lt;intercept-url pattern="/login" access="permitAll" method="POST" /&gt;
  </code></pre>
  
  <p>Got it working with <strong>Java Config</strong>:</p>
  
  <pre><code>http.authorizeUrls().antMatchers("/login").permitAll();
  </code></pre>
  
  <p>But one problem is there:</p>
  
  <p>I can still use  "/login" with a Browser and do a GET-Request. But I only want that the url can be accessed by POST.</p>
  
  <p><strong>Quesion:</strong></p>
  
  <p>How can I add this  >> method="POST" &lt;&lt; to java configuration?</p>