I have the following problem: Whenever I try to edit the following data, I get an exception saying that HTTP PUT is not supported by this URL. This is the JSP form side of things where a button is used to edit that row:
<c:url var="formAction" value="/circuits/${circuit.circuitId}" /> <form:form method="PUT" action="${formAction}"> <input type="hidden" name="circuitId" value="${circuit.circuitId}" /> <input type="submit" value="Edit" class="btn btn-primary" /> </form:form> And the following is my controller method that retrieves the circuitId:
@RequestMapping(value = "/{circuitId}", method = RequestMethod.PUT) public String showEditCircuitForm(@PathVariable Integer circuitId, ModelMap model) throws NoSuchRequestHandlingMethodException However, when I use the normal GET method everything works fine, it's just this PUT method that is causing the problem. I have got all the dependencies that I need.