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 c8e93a2..4ae0095 100644 Binary files a/server/build/classes/java/main/com/swdc/server/service/PriceService.class and b/server/build/classes/java/main/com/swdc/server/service/PriceService.class differ diff --git a/server/build/tmp/compileJava/compileTransaction/stash-dir/PriceController.class.uniqueId0 b/server/build/tmp/compileJava/compileTransaction/stash-dir/PriceController.class.uniqueId0 index 4ccc984..1bb56eb 100644 Binary files a/server/build/tmp/compileJava/compileTransaction/stash-dir/PriceController.class.uniqueId0 and b/server/build/tmp/compileJava/compileTransaction/stash-dir/PriceController.class.uniqueId0 differ diff --git a/server/build/tmp/compileJava/previous-compilation-data.bin b/server/build/tmp/compileJava/previous-compilation-data.bin index e7b5dba..42d3115 100644 Binary files a/server/build/tmp/compileJava/previous-compilation-data.bin and b/server/build/tmp/compileJava/previous-compilation-data.bin differ 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