Dev 개발 스터디 (동면 중)/Dev_log+Study 😶‍🌫️

[CRUD_게시판 만들기] 04. ViewDetail: 글 디테일 페이지 프로세스

에이미쉬 2023. 2. 28. 00:22
728x90
반응형

return confirm('삭제하시겠습니까?')
------------------------------------------------------------
리뷰 디테일 페이지 프로세스
------------------------------------------------------------
1. 글목록 페이지에서 > 원하는 게시글을 클릭 > 디테일 페이지로 이동
2. 프론트에 있는 글 번호를 백으로 던지고
     th:text="${a.reviewTitle}"
                  th:onclick="'location.href=\'' + @{reviewView(reviewNo=${a.reviewNo})} + '\''"
------------------------------------------------------------
3. 페이지 컨트롤러에서 글 번호를 받고
4. 페이지 컨트롤러가 리뷰 서비스로 해당 pk의 글 번호를 보냄

------------------------------------------------------------
5. 리뷰 서비스에서 리뷰 맵퍼에 리뷰 조회 결과를 보내+리뷰 디테일 페이지로 이동
6. 리뷰 디테일 페이지는 조회한 객체를 받아서 프론트에서 보여줌
------------------------------------------------------------
https://mimah.tistory.com/entry/Thymeleaf-locationhref%EC%97%90-%EB%B3%80%EC%88%98-%EB%84%A3%EA%B8%B0-thonclick-GET
======================================
리뷰 수정 프로세스
글 디테일페이지 클릭
디테일페이지에서 내용 수정
수정 값을 프론트에서 백으로 던져


[Thymeleaf] location.href에 변수 넣기 (th:onclick, GET)
https://mimah.tistory.com/entry/Thymeleaf-locationhref%EC%97%90-%EB%B3%80%EC%88%98-%EB%84%A3%EA%B8%B0-thonclick-GET

[thymeleaf] 타임리프 th:value 사용법 및 예제
https://solbel.tistory.com/1413

[Spring Boot] @PathVariable 사용법
https://so-easy-coding.tistory.com/8

728x90
반응형