HandlerAdapter 썸네일형 리스트형 Dispatcher Servlet과 Jackson Converter의 비밀 Spring Controller가 DTO를 반환했는데 어떻게 JSON이 될까?Spring Boot로 REST API를 개발하다 보면 아주 자연스러운 코드를 마주하게 됩니다.@RestController@RequestMapping("/api/users")public class UserController { @GetMapping("/{id}") public UserDto getUser(@PathVariable Long id) { // ... 사용자 정보를 조회 ... return new UserDto("John Doe", "john.doe@example.com"); // 분명 UserDto 객체를 반환했다. }}위 코드에서 getUser 메서드는 UserDto라는 순수.. 더보기 이전 1 다음