Can I use @Requestparam annotation for a Post request?
I have this controller method: @PostMapping( value = "/createleave", params = {"start","end","hours","username"}) public void createLeave(@RequestParam(value = "start") String start, @RequestParam(value = "end") String end, @RequestParam(value = "hours") String hours, @RequestParam(value = "username") String username){ System.out.println("Entering createLeave " + start + " " + end + " " + hours + " " + username); LeaveQuery newLeaveQuery = new LeaveQuery(); Account account = accountRepository.findByUsername(username); newLeaveQuery.setAccount(account); newLeaveQuery.setStartDate(new Date(Long