본문 바로가기 메뉴 바로가기

구티

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

구티

검색하기 폼
  • 분류 전체보기 (172)
    • General (4)
    • MacOS (9)
    • Jenkins (3)
    • Linux (18)
    • Elastic Stack (19)
    • Spring (31)
    • Geography (1)
    • Tools (27)
    • GIT (1)
    • Gradle (8)
    • Java (16)
    • Prometheus & Grafana (0)
    • Spark & Scala (7)
    • Hadoop (1)
    • Synology (1)
    • Backend (3)
    • Cloud Platform (10)
      • AWS (10)
    • Web (0)
    • Frontend (3)
      • material-ui (1)
      • ReactJS (0)
    • Docker (5)
    • Database (3)
  • 방명록

파일업로드 (1)
Spring 파일 업로드 REST API 구현하기( MultipartFile )

Spring에서 파일 업로드 REST API를 만들기 위해서는 HTTP POST와 MultipartFile을 인자로 간단하게 만들 수 있습니다. 아래와 같이 컨트롤러에 Post endpoint를 만든 후, MultipartFile을 인자로 넣어줍니다. 그리고 로직을 구현할 Service 빈에 MultipartFile 객체를 넘겨줍니다. @RestController public class UploadController { UploadFileService uploadFileService; public UploadController(UploadFileService uploadFileService) { this.uploadFileService = uploadFileService; } @PostMapping("/..

Spring 2021. 8. 30. 15:04
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • apm
  • Filter
  • JPA
  • Kibana
  • error
  • Container
  • logstash
  • spring
  • install
  • Git
  • Linux
  • intellij
  • AWS
  • plugin
  • Log
  • elasticsearch
  • mac
  • Spark
  • SpringBoot
  • JSON
  • gradle
  • tomcat
  • Postman
  • Index
  • maven
  • spring boot
  • Java
  • scala
  • docker
  • Size
more
«   2025/07   »
일 월 화 수 목 금 토
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 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바