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

How to check the output of a Java Docker Container?

We have a GitLab Pipeline with the following job which runs inside a Docker Container that has Java installed: generate_openapi_server_code: image: java:17 stage: validate tags: - test script: - "wget https://<artifactory-host-url>/artifactory/Maven-Central-remote-cache/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar -O openapi-generator-cli.jar" - "java -jar openapi-generator-cli.jar generate -g spring…

VIEW QUESTION
Back To Top
Search