게시판 업데이트 수정 - 변경감지 기능 이용

게시판 리퀘스트 파라미터 유효성 체크 수정
This commit is contained in:
kimyonghwa
2019-05-16 16:39:45 +09:00
parent c25984207b
commit c6110eb806
3 changed files with 10 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ public class BoardService {
throw new CNotOwnerException();
post.setUpdate(paramsPost.getAuthor(), paramsPost.getTitle(), paramsPost.getContent());
return postJpaRepo.save(post);
return post;
}
// 게시물을 삭제합니다. 게시물 등록자와 로그인 회원정보가 틀리면 CNotOwnerException 처리합니다.