Skip to content

Commit 2f58867

Browse files
author
sameom1048
committed
Update Final
1 parent 6d43d46 commit 2f58867

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

src/main/frontend/src/components/main/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getProducts } from "../../service/fetcher";
66
import CategoryBar from "../category/CategoryBar";
77

88
export const Main = ({ convertPrice, products, setProducts }) => {
9+
910
// const sortProduct = (type) => {
1011
// if (type === "recent") {
1112
// const newProduct = [...products];

src/main/java/com/hadoop/demo/Controller/UserInfoController.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ spring.datasource.password=hansungcapstone
1212
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
1313

1414

15-
webdriver.chrome.driver=C:/Project/demo/src/main/resources/chromedriver.exe
15+
webdriver.chrome.driver=C:/Project/demo/src/main/resources/chromedriver.exe

0 commit comments

Comments
 (0)