
[Spring Boot] 스프링부트 파라미터 받기
·
프로그래밍 일기/Java & Spring
GetMapping @GetMapping("/list/load") public Map loadList(Map params) throws Exception { return testService.loadList(params); } PostMapping @PostMapping("/list/add") public Map addList(@RequestBody Map params) throws Exception { return testService.addList(params); } @RequestParam, @RequestBody를 붙여야 한다는 사실을 기억하자