본문 바로가기

쌓고 쌓다

검색하기
쌓고 쌓다
프로필사진 승민아

  • 분류 전체보기 (783)
    • SAP (58)
      • ABAP (54)
      • Fiori & UI5 (2)
      • etc (2)
    • 알고리즘 (272)
      • 백준 (59)
      • 프로그래머스 (185)
      • 개념 (8)
      • 자료구조 (19)
    • 프로그래밍 (409)
      • SQL (67)
      • java (49)
      • JavaScript (54)
      • html & css (12)
      • spring (153)
      • 리눅스 (12)
      • C & C++ (9)
      • node.js (6)
      • JPA (26)
      • JSP & Servlet (7)
      • thymeleaf (6)
      • 안드로이드 스튜디오 (4)
      • docker (4)
    • Git & CS (29)
    • 끄적끄적 (12)
Guestbook
Notice
  • 개인 깃허브 링크
«   2024/01   »
일 월 화 수 목 금 토
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
Archives
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2024/01/02 (1)

쌓고 쌓다

Resource, UrlResource?

만들고 있는 앱에서 서버로 "http://10.0.2.2:8080/inquirys/imagefile/b26295a2-6e46-49c9-9cf9-173fb8ad4a2b.jpg"와 같이 요청이 오면 이미지 파일을 응답으로 보내길 원했다. 그래서 다음과 같은 코드를 작성했다. @GetMapping("/imagefile/{imagefileName}") public ResponseEntity getImagefile(@PathVariable String imagefileName) throws IOException { UrlResource resource = new UrlResource("file:" + imageStore.getFullPath(imagefileName)); return ResponseEntity.o..

프로그래밍/spring 2024. 1. 2. 16:21
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바