You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out the problem was in the controller.
Only one @PathVariable can be placed within the same path (between two slashes). As you can see in the picture above, I put two PathVariable in the same path, which resulting this request not respond.
To fix this problem is dead simple, I replaced the @PathVariable with @RequestParam
GET /department_manager/find/dept_{dept_no}emp{emp_no}
function "getdepDepartmentManagersByEmpDep"
Input:
http://localhost:8080/department_manager/find/dept_d008_emp_111400
Output:
Empty
Should return:
{
"deptMangrKey": {
"department": {
"deptNo": "d008",
"deptName": "Research"
},
"employee": {
"birth_date": "1959-11-09",
"first_name": "Arie",
"last_name": "Staelin",
"gender": "M",
"hire_date": "1985-01-01",
"emp_no": 111400
}
},
"fromDate": "1985-01-01",
"toDate": "1991-04-08"
}
The text was updated successfully, but these errors were encountered: