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

Where should application logic go in Laravel?

Currently, whenever a user opens a URL '/users/new', I use the following route that leads to the controller called 'UsersController': Route::post('/users/new', [AppHttpControllersApiUserController::class, 'newUser']); Inside the Controller, the 'newUser' method is responsible for sending the request data (name_user, email_user, password_user) to…

VIEW QUESTION
Back To Top
Search