Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- JDBC
- 스프링
- 스프링 핵심 원리
- SpringBoot
- Servlet
- AOP
- 그리디
- 백준
- Proxy
- http
- JPQL
- 자바
- transaction
- Greedy
- jpa
- springdatajpa
- 인프런
- 김영한
- java
- Android
- Exception
- spring
- 알고리즘
- kotlin
- db
- QueryDSL
- Spring Boot
- pointcut
- Thymeleaf
- 스프링 핵심 기능
Archives
- Today
- Total
목록버튼 (1)
개발자되기 프로젝트
댓글 삭제버튼 추가
1. 댓글 삭제버튼 추가 간단하게 table 안에 을 추가해줬다. 이 때 PathVariable로는 comment의 id, QueryParameter로 현재 Post의 id를 넘겨준다. 작성자 내용 작성일 삭제 작성자 댓글 내용 2. Controller view에서 넘어오는 PathVariable, QueryParameter를 받아서 처리함. comment 삭제 후 현재 게시물로 redirect @PostMapping("/{commentId}/delete") public String deleteComment(@PathVariable("commentId") Long id, @RequestParam("postId") Long postId, RedirectAttributes redirectAttributes)..
Project/블로그 게시판 만들기
2021. 10. 9. 15:28