title: Spring - @Deletemapping
body: <p>I need some input thanks :)   (Spring Boot 2.0)</p>
  
  <p>EDIT: This method does work with @Getmapping - but when I replace it with @Deletemapping it gives me "error 405".</p>
  
  <p>I have made this controller:</p>
  
  <pre><code>//Delete controller
          @DeleteMapping("delete/venue/{id}")
          public String deleteVenue(@PathVariable("id") Integer id)
          {
  
              log.info("deleteVenue action called...");
  
              venueService.removeVenue(id);
  
              log.info("deleteVenue action ended...");
  
              return "redirect:/"+readvenue;
  
          }
  </code></pre>
  
  <p>Html part:</p>
  
  <pre><code>&lt;a class="glyphicon glyphicon-remove" th:href="${'delete/venue/' + venue.venueId}"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I get this error:</p>
  
  <hr>
  
  <p>Whitelabel Error Page
  This application has no explicit mapping for /error, so you are seeing this as a fallback.</p>
  
  <p>Fri Dec 14 12:52:35 CET 2018
  There was an unexpected error (type=Method Not Allowed, status=405).</p>
  
  <h2>Request method 'GET' not supported</h2>
  
  <p>My teacher informed me that I need an anchor tag in the HTML - Have tried different things non-works.  - Maybe someone out there has the solution.</p>
  
  <p>Thank you anyway.</p>