title: Spring - 405 Http method DELETE is not supported by this URL
body: <p>Well I have a strange problem with executing a "DELETE" HTTP request in Spring. </p>
  
  <p>I have a controller method which I have mapped a DELETE request to:</p>
  
  <pre><code>    @RequestMapping(value = "/{authorizationUrl}",method=DELETE)
      public void deleteAuthorizationServer(
              @RequestHeader(value="Authorization") String authorization,
              @PathVariable("authorizationUrl") String authorizationUrl)
              throws  IOException {
  
          System.out.println("TEST");
  
      }
  </code></pre>
  
  <p>The controller is mapped using <code>@RequestMapping("/authorization_servers");</code>
  When I send a request through my DEV Http Client, I am getting the response : <code>405 Http method DELETE is not supported by this URL</code>.</p>
  
  <p>The request looks like this:</p>
  
  <pre><code> DELETE    localhost:8080/authorization_servers/asxas
  
    Headers:
    Authorization: "test:&lt;stuff&gt;"
  </code></pre>
  
  <p><strong>If someone can look into this and help me, I would be grateful</strong></p>