You could use th:method
for this:
<form th:object="${commandObject}" th:action="@{/urlToCall}" th:method="delete">
This will generate a hidden input element, which will be picked up by Spring MVC:
<input type="hidden" name="_method" value="delete">
More Related Contents:
- How to use “map.get(key)” in Thymeleaf – Broadleaf Ecom
- Serving static web resources in Spring Boot & Spring Security application
- How to use Session attributes in Spring-mvc
- How to avoid the “Circular view path” exception with Spring MVC test
- Neither BindingResult nor plain target object for bean name available as request attribute [duplicate]
- Spring 3 MVC accessing HttpRequest from controller
- When to use Spring Security`s antMatcher()?
- @ModelAttribute annotation, when to use it?
- Sending Multipart File as POST parameters with RestTemplate requests
- How to bind an object list with thymeleaf?
- Difference between Request MVC and Component MVC [closed]
- Spring 5.0.3 RequestRejectedException: The request was rejected because the URL was not normalized
- Spring Boot and custom 404 error page
- How to create a Spring Interceptor for Spring RESTful web services
- Dynamic Selection Of JsonView in Spring MVC Controller
- ContentCachingResponseWrapper Produces Empty Response
- StrictHttpFirewall in spring security 4.2 vs spring MVC @MatrixVariable
- Difference between JAX-RS and Spring Rest
- Which is better, return “ModelAndView” or “String” on spring3 controller
- How to convert byte array to MultipartFile
- Is it possible to dynamically set RequestMappings in Spring MVC?
- Convert Unix timestamp to Java Date, Spring RequestParam
- Web-application context/ root application context and transaction manager setup
- Spring MVC : read file from src/main/resources
- ServletContext and Spring MVC
- Http Post with request content type form not working in Spring MVC 3
- What does do?
- How to handle IO streams in Spring MVC
- Thymeleaf multiple submit button in one form
- Does Spring @RequestBody support the GET method?