Код: Выделить всё
@GetMapping(value = {"${URL.COACH.GET.ALL.COACH.BY.CORPORATE.NAME}"})
public ResponseEntity getCoachDetailsByCorporateName(@PathVariable String corporateName , @PathVariable(required = false) RoleType roleType){
System.out.println("ins controller");
return coachFacade.getCoachDetails(corporateName,roleType);
}
Код: Выделить всё
URL.COACH.GET.ALL.COACH.BY.CORPORATE.NAME=/getAllCoachByCorporateName/{corporateName}/{roleType}
но при вызове таким образом выдает ошибку: путь не найден
Код: Выделить всё
http://localhost:8080/getAllCoachByCorporateName/ABC/Код: Выделить всё
@GetMapping(value = {"${URL.COACH.GET.ALL.COACH.BY.CORPORATE.NAME}"})
public ResponseEntity getCoachDetailsByCorporateName
(@RequestParam String corporateName,
@RequestParam(required = false ) RoleType roleType) {
System.out.println("ins controller");
return coachFacade.getCoachDetails(corporateName, roleType);
}
Код: Выделить всё
http://localhost:8080/getAllCoachByCorporateName?corporateName=ABCПодробнее здесь: https://stackoverflow.com/questions/766 ... questparam