Below is my method to delete and return a string, simple and straightforward
@RequestMapping(value = "/deletetest", method = RequestMethod.DELETE)
@ResponseBody
public String DeleteUser() {
return "something";
}
But I go Get method not supported, which is weird since i state that my method = RequestMethod.DELETE
Any insight?
If you set an endpoint to RequestMethod.DELETE
the endpoint will only accept a HTTP DELETE request. Your browser issues a GET request.