![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbNklkX%2FbtroKyF0IyX%2FfTVUx25kTAPNRz5omL0aFk%2Fimg.jpg)
스터디
[SpringBoot] @RequestBody란?
안녕하세요! 오늘은 Json형태를 자바 객체로 변환시켜주는 @RequestBody 에 대해 알아보겠습니다. UserController.java @RestController @RequestMapping("user") public class UserController { private final UserServiceImpl userService; public UserController(UserServiceImpl userService) { this.userService = userService; } @PostMapping("register") public void register(@RequestBody User user){ System.out.println(user.toString()); userServic..