more parameters java sql 40pathvariable

Solutions on MaxInterview for more parameters java sql 40pathvariable by the best coders in the world

showing results for - "more parameters java sql 40pathvariable"
Gerard
04 Jan 2021
1@GetMapping("/api/employeeswithmapvariable/{id}/{name}")
2@ResponseBody
3public String getEmployeesByIdAndNameWithMapVariable(@PathVariable Map<String, String> pathVarsMap) {
4    String id = pathVarsMap.get("id");
5    String name = pathVarsMap.get("name");
6    if (id != null && name != null) {
7        return "ID: " + id + ", name: " + name;
8    } else {
9        return "Missing Parameters";
10    }
11}
similar questions
queries leading to this page
more parameters java sql 40pathvariable