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
- Greedy
- 알고리즘
- 자바
- QueryDSL
- Exception
- Proxy
- 스프링 핵심 원리
- 인프런
- http
- spring
- SpringBoot
- JPQL
- kotlin
- 그리디
- jpa
- 스프링
- 김영한
- transaction
- db
- AOP
- 백준
- springdatajpa
- 스프링 핵심 기능
- JDBC
- Spring Boot
- java
- Android
- Servlet
- pointcut
- Thymeleaf
Archives
- Today
- Total
목록지원 안함 (1)
개발자되기 프로젝트
글 삭제하기
현재 글 세부 페이지로 들어가면 삭제할 수 있는 기능이 없다. 추가하자! 1. PostController @PostMapping("/{postId}/delete") public String deletePost(@PathVariable("postId") Long id){ postService.deletePost(id); return "redirect:/posts"; } 원래는 @DeleteMapping("/{postId}")로 하려했으나.. HTML FORM에서 DELETE를 지정하면 GET으로 들어가서.. 어쩔수 없이 URL을 "/{postId}/delete로 했음..ㅜ 2. post.html 글 삭제 3. 결과 글 저장! DB에서도 확인! 삭제!! 없어짐! 4. GitHub : 211005 delete..
Project/블로그 게시판 만들기
2021. 10. 5. 22:33