@@ -58,27 +58,6 @@ public UserInfoController() {
5858 this .sink = Sinks .many ().multicast ().onBackpressureBuffer ();
5959 }
6060
61- // @GetMapping("/ShowMySpec")
62- // public ResponseEntity<Resource> downloadFile() throws IOException {
63- // // 다운로드할 파일 경로
64- // // 다운로드할 파일 경로
65- // Resource resource = new ClassPathResource("Scoop.exe");
66- //
67- // // InputStreamResource 생성
68- // InputStreamResource inputStreamResource = new InputStreamResource(resource.getInputStream());
69- //
70- // // Content-Disposition 헤더를 설정하여 파일 이름 지정
71- // HttpHeaders headers = new HttpHeaders();
72- // headers.add("Content-Disposition", "attachment; filename=Scoop.exe");
73- //
74- // // ResponseEntity에 InputStreamResource와 headers 설정
75- // return ResponseEntity.ok()
76- // .headers(headers)
77- // .contentLength(resource.contentLength())
78- // .contentType(MediaType.APPLICATION_OCTET_STREAM)
79- // .body(inputStreamResource);
80- // }
81-
8261
8362 @ GetMapping ("/api/spring" )
8463 public ResponseEntity <Void > cpu (){
@@ -228,4 +207,25 @@ public List<GpuList> handleLastDataByPopular2(@RequestBody handleRequest gpuId){
228207 return popularSpecListService .searchSelectGpuByPopular (gpuId .getLastPart ());
229208 }
230209
210+ // local로 Scoop.exe 실행 시 사용
211+ // @GetMapping("/ShowMySpec")
212+ // public ResponseEntity<Resource> downloadFile() throws IOException {
213+ // // 다운로드할 파일 경로
214+ // // 다운로드할 파일 경로
215+ // Resource resource = new ClassPathResource("Scoop.exe");
216+ //
217+ // // InputStreamResource 생성
218+ // InputStreamResource inputStreamResource = new InputStreamResource(resource.getInputStream());
219+ //
220+ // // Content-Disposition 헤더를 설정하여 파일 이름 지정
221+ // HttpHeaders headers = new HttpHeaders();
222+ // headers.add("Content-Disposition", "attachment; filename=Scoop.exe");
223+ //
224+ // // ResponseEntity에 InputStreamResource와 headers 설정
225+ // return ResponseEntity.ok()
226+ // .headers(headers)
227+ // .contentLength(resource.contentLength())
228+ // .contentType(MediaType.APPLICATION_OCTET_STREAM)
229+ // .body(inputStreamResource);
230+ // }
231231}
0 commit comments