inblog logo
|
heo-gom
    springboot 무작정 따라하기

    [따라하기] 3-3. 댓글 추가하기

    허성재's avatar
    허성재
    Sep 20, 2024
    [따라하기] 3-3. 댓글 추가하기
    마찬가지 fetch를 이용해 CSR을 할 예정이다.
    notion image
    간단하다 fetch를 하면 데이터를 보내줘야하기에 ResponseEntity에 바디를 넣어 보내준다
    notion image
    DTO도 만들어준다.
    notion image
    게시글을 들고있는 Reply객체로 만들어 영속화 시킨다,.
    notion image
    fetch요청을 하고 결과가 오면 js를 이용해 view에 댓글을 추가한다.
    Share article

    heo-gom

    RSS·Powered by Inblog