From d597de77f319f0a5f01e191f6c2840041b08c5e2 Mon Sep 17 00:00:00 2001 From: SangYeong Park Date: Sat, 21 Sep 2024 14:25:42 +0900 Subject: [PATCH] change base path --- server/.gitignore | 2 ++ .../swdc/server/service/PriceService.class | Bin 7337 -> 7332 bytes .../stash-dir/PriceController.class.uniqueId0 | Bin 3563 -> 2720 bytes .../compileJava/previous-compilation-data.bin | Bin 71479 -> 71479 bytes .../com/swdc/server/service/PriceService.java | 4 ++-- .../src/main/resources/application.properties | 3 ++- 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/.gitignore b/server/.gitignore index c168328..805ca0c 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -37,3 +37,5 @@ out/ .vscode/ build/classes/java/main/com/swdc/server/config/WebConfig.class src/main/java/com/swdc/server/config/WebConfig.java +src/main/resources/application.properties +build \ No newline at end of file diff --git a/server/build/classes/java/main/com/swdc/server/service/PriceService.class b/server/build/classes/java/main/com/swdc/server/service/PriceService.class index c8e93a2023965bf8dcbd2fb9acb7fe6b2babf0aa..4ae00956ccafa7a6c8a07f6e8bd037b34bc1ccf0 100644 GIT binary patch delta 1983 zcmZ`(X>e0j6#j1VlKYa}mNe=1QkJx|rCYjCwmwQr3k57tWUWvELl+2?1k*M&>0m)#a+P}f9TlJabb`dM?5bL)j$4u_q%6%-}%mY??}a= zisL$~=1696uk~;8mu!p#+DmG}VgJ@SfsTkBZlnsNA)Ucm83+aI!q z@iN0)uNGjUz$8@2_2%lClNl2KB{ayzizxzC1{X_nd#Iz8W9l{9?f&5El0|F6q0RnP z?X7lHqgG%Vrpw>WJ~l&UDp`(MxQ?S%u%ih#ax52Eft8H99woBnY|HdS zKUQ%x3$&n>p)6+Zv?R#0mW8Sxs|D5|AoH!`**dw>nx%TMULc5&?6Nkg3T_q%qeBi@ zi%5@+0-LZ|dihM%f~|(<78&9bRV!{4xDB_e$d8h%k(i zewHjFwlwP@f#>kN?6wuA92Pi&7Z}t?XkjEA2(D&G&XfBUx7`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ENko6aAnNDHBc8o!T) z_~_4=xJ&zQO7BUgOEM8JZ5tWUPE1k=GAgPIHZ2rODl`Z1ri7_Vjl@5lL*JaDo=&S+ jqwg3=eS>`O$+0HKTYKg7fgC@=$CRd0$|v{?Um*HFgULx6 diff --git a/server/build/tmp/compileJava/previous-compilation-data.bin b/server/build/tmp/compileJava/previous-compilation-data.bin index e7b5dbab4e1f0d53cf1ab0b003db9a4149e8ac98..42d311549db5f264724ccb31e2d5a8695427676c 100644 GIT binary patch delta 35 rcmdnKj%E8gmJQNO0%;z-JxWt{$mVx delta 35 rcmdnKj%E8gmJQNO0zIlRd}nX0JfIXPaC-CghLUD&rtR8Hj69+M2s{m2 diff --git a/server/src/main/java/com/swdc/server/service/PriceService.java b/server/src/main/java/com/swdc/server/service/PriceService.java index 64f8dca..a7d8bdf 100644 --- a/server/src/main/java/com/swdc/server/service/PriceService.java +++ b/server/src/main/java/com/swdc/server/service/PriceService.java @@ -34,7 +34,7 @@ public class PriceService { private static final Logger logger = LoggerFactory.getLogger(PriceService.class); - private static final String BASE_PATH = "/mnt/patturning"; + private static final String BASE_PATH = "/Users/sangyeong_park/CE/contest/file_system"; @Autowired private MongoTemplate mongoTemplate; @@ -46,7 +46,7 @@ public class PriceService { */ public Price getProductDetails(String platform, String category_name, String product_id) { Path fileSystemPath = Paths.get(BASE_PATH); - Path productPath = fileSystemPath.resolve(platform).resolve(category_name).resolve(product_id + ".txt"); + Path productPath = fileSystemPath.resolve(platform).resolve(category_name).resolve(product_id); List> prices = new ArrayList<>(); diff --git a/server/src/main/resources/application.properties b/server/src/main/resources/application.properties index 2d292fa..c6761ca 100644 --- a/server/src/main/resources/application.properties +++ b/server/src/main/resources/application.properties @@ -1 +1,2 @@ -spring.application.name=swdc \ No newline at end of file +spring.application.name=swdc +server.port=8090 \ No newline at end of file