title: cannot understand error call not allowed with $http call (angularjs)
body: <p>I have this error with a DELETE call with $http : </p>
  
  <blockquote>
    <p>DELETE
    'url'/?$$hashKey=021&amp;id=2&amp;idHike=2&amp;label=pelle&amp;onMe=true&amp;weight=110
         405 (Method Not Allowed)</p>
  </blockquote>
  
  <p>If anyone can help...</p>
  
  <p>Frontend:</p>
  
  <pre><code>$scope.delete = function (item) {
              var config = {
                  params: item
              };
  
              $http.delete("/rest/items/deleteFromHike/", config)
              .success(function (data, status, headers, config)
              {
                  $log.info("SUCCESS");
              })
              .error(function (data, status, headers, config)
              {
                  $log.info("ERROR");
              });
  
          };
  </code></pre>
  
  <p>Backend (JAVA) : </p>
  
  <pre><code>@RequestMapping(value = "/rest/items/deleteFromHike/{itemDto}",
              method = RequestMethod.DELETE,
              produces = MediaType.APPLICATION_JSON_VALUE)
      @Timed
      public void deleteItemFromHike(@PathVariable ItemDTO itemDto) {
          log.debug("REST request to delete Item : {}", itemDto.toString());
      }
  </code></pre>