I would like to call @RequestMapping(value = \"\", method = RequestMethod.DELETE)
in spring from thymeleaf form.
Is there any possibility to call delete or
Thymeleaf is an HTML template engine. HTML does not support put
or delete
HTTP methods for its method
attribute. So, no, you can't. However, you have alternatives.
You can use javascript to send the request asynchronously. In that case, you can send any type of HTTP request.
You can also use a HiddenHttpMethodFilter
with a hidden
_method=put
element as described here. Something like