skip to Main Content

Does @DeleteMapping work with Spring Boot?

why is the DELETE query not working for me. @DeleteMapping("/delete") public String deleteUser(@RequestParam("userId") long id) { userService.deleteUser(id); return "redirect:/"; } There is a form for this mapping, but it returns me the Request method 'GET' is not supported. <form th:object="${users}">…

VIEW QUESTION

Does Thymeleaf's th:field generate an id attribute too? – Html

I have this in my browser console (in fact, many similar messages): [DOM] Found 2 elements with non-unique id #username: (More info: /* some URL */) <input id="username" class="form-control" min="2" max="15" aria-describedby="uu-username-help-block" required="" name="username" value="scrooge_m"> <input type="hidden" id="username" name="username" value="scrooge_m">…

VIEW QUESTION
Back To Top
Search