Delete or put methods in thymeleaf

后端 未结 5 950
情歌与酒
情歌与酒 2021-02-05 15:52

I would like to call @RequestMapping(value = \"\", method = RequestMethod.DELETE) in spring from thymeleaf form.

Is there any possibility to call delete or

5条回答
  •  迷失自我
    2021-02-05 16:43

    You could use th:method for this:

    This will generate a hidden input element, which will be picked up by Spring MVC:

    
    

提交回复
热议问题