@RequestParam1 [TIL] 231206Spring @RequestParam @RequestParam @GetMapping("/request-param") public ResponseEntity getPostByUser(@RequestParam ("user") String username){ List postResponseDtoList = new ArrayList(); postResponseDtoList = postService.getPostByUser(username); return ResponseEntity.ok().body(postResponseDtoList); } 프로젝트로 RequestParam 사용해봄>_ 2023. 12. 6. 이전 1 다음