로딩
티스토리 데이터 처리 중입니다.

[스프링] 이미지 업로드 + JSON 형식으로 데이터 보내기

 [스프링] 이미지 업로드 + JSON 형식으로 데이터 보내기

Controller @RequiredArgsConstructor @RestController public class PostController { @RequestMapping(value = "/api/auth/post", method = RequestMethod.POST) public ResponseDto createPost(@RequestParam("dto") String dto, @RequestParam("images") MultipartFile images, HttpServletRequest request) throws JsonProcessingException { PostRequestDto requestDto = new ObjectMapper().readValue(dto, PostRequestDt.....