웹파일업로드1 자바 웹, 파일 다운로드 구현 @GetMapping("/download/{attatchFileId}") public ResponseEntity downloadFileFromLocal(@PathVariable String attatchFileId) throws FileNotFoundException { String fileBasePath = "C:/upload/"; log.debug(attatchFileId); // FileService Optional attachFile = tipsFileService.getAttachFilebyAttachFileId(Long.parseLong(attatchFileId)); String fileName = fileBasePath + attachFile.get().getFilePhysicalName().. 2020. 3. 28. 이전 1 다음