[JAVA] Spring Boot로 파일 업로드 및 다운로드 API 구현하기
웹 애플리케이션에서 파일 업로드 및 다운로드는 매우 흔한 기능입니다.Spring Boot는 MultipartFile과 ResponseEntity 등을 활용하여 이를 간단하게 구현할 수 있는 구조를 제공합니다.이번 글에서는 로컬 디스크에 파일 저장을 기준으로 업로드/다운로드 API를 구현하고, 실제 운영에 필요한 설정 및 보안 팁도 함께 소개합니다. 프로젝트 기본 세팅dependencies { implementation 'org.springframework.boot:spring-boot-starter-web'}# application.ymlfile: upload-dir: uploadsspring: servlet: multipart: max-file-size: 10MB max..