@PutMapping("/rest/posts/{id}") public ResponseEntity greetingSubmit(@PathVariable("id") Long id, @RequestBody @Valid PostRequestDto post, BindingResult bindingResult, HttpServletResponse response) throws IOException { //post.setAuthor(((postService.findById(id)).getAuthor())); // 작성자 -> postService.update로 옮기기 if (bindingResult.hasErrors()) { response.sendRedirect("/post/detail"); return new Re..