[Spring] 22. 게시물 상세/수정 - 파일 업로드/삭제 기능 추가
개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 21. 16:56[Spring] 22. 게시물 상세/수정 - 파일 업로드/삭제 기능 추가

detail.jsp // ... (기존 코드) ${fvo.fileName} ${fvo.fileSize }Byte 수정 삭제 목록 // ... (기존 코드) modify.jsp // ... (기존 코드) ${fvo.fileName} ${fvo.fileSize }Byte X 파일 업로드 수정 삭제 목록 boardFile.js // ... (기존 코드) document.addEventListener('click', (e)=>{ if(e.target.classList.contains('file-x')) { let uuid = e.target.dataset.uuid; removeFileToServer(uuid).then(result =>{ if(result == '1') { console.log("파일 삭제 성공..

[Spring] 11. 게시물 상세 / 수정 / 삭제
개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 17. 10:37[Spring] 11. 게시물 상세 / 수정 / 삭제

detail.jsp No. 제목 작성자 작성일 ${bvo.readCount } 수정일 내용 수정 삭제 목록 modify.jsp 게시글 수정 No. 제목 작성자 작성일 수정일 내용 수정 삭제 목록 수정 페이지에서는 조회수를 볼 필요가 없다고 생각해서 조회수는 빼주었다. BoardController.java package com.basicWeb.www.controller; import java.util.List; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springfram..

728x90
반응형
image