diff --git a/server/build/classes/java/main/com/swdc/server/controller/PriceController.class b/server/build/classes/java/main/com/swdc/server/controller/PriceController.class index 31c476d..1bb56eb 100644 Binary files a/server/build/classes/java/main/com/swdc/server/controller/PriceController.class and b/server/build/classes/java/main/com/swdc/server/controller/PriceController.class differ diff --git a/server/build/resources/main/application.properties b/server/build/resources/main/application.properties index 2d292fa..c6761ca 100644 --- a/server/build/resources/main/application.properties +++ b/server/build/resources/main/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 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 31c476d..4ccc984 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/compileTransaction/stash-dir/PriceService.class.uniqueId1 b/server/build/tmp/compileJava/compileTransaction/stash-dir/PriceService.class.uniqueId1 deleted file mode 100644 index 7301cf0..0000000 Binary files a/server/build/tmp/compileJava/compileTransaction/stash-dir/PriceService.class.uniqueId1 and /dev/null differ diff --git a/server/build/tmp/compileJava/previous-compilation-data.bin b/server/build/tmp/compileJava/previous-compilation-data.bin index 46dd59f..e7b5dba 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/controller/PriceController.java b/server/src/main/java/com/swdc/server/controller/PriceController.java index 911721b..0ef5d13 100644 --- a/server/src/main/java/com/swdc/server/controller/PriceController.java +++ b/server/src/main/java/com/swdc/server/controller/PriceController.java @@ -36,9 +36,10 @@ public class PriceController { public Price getPriceInfo(@PathVariable String platform, HttpServletRequest request, @PathVariable String product_id) { String restOfPath = (String) request.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE); String bestMatchPattern = (String) request.getAttribute(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE); - String category_name = new AntPathMatcher().extractPathWithinPattern(bestMatchPattern, restOfPath); + String category_name_with_separator = new AntPathMatcher().extractPathWithinPattern(bestMatchPattern, restOfPath); - category_name = UriUtils.decode(category_name, StandardCharsets.UTF_8); + category_name_with_separator = UriUtils.decode(category_name_with_separator, StandardCharsets.UTF_8); + String category_name = category_name_with_separator.replace("/", "_"); return priceService.getProductDetails(platform, category_name, product_id); } 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 986a8d9..64f8dca 100644 --- a/server/src/main/java/com/swdc/server/service/PriceService.java +++ b/server/src/main/java/com/swdc/server/service/PriceService.java @@ -41,7 +41,7 @@ public class PriceService { /** * - * file system에서 "fileSystemPath/platform/category_name/product_id.txt"에 해당하는 product의 가격 정보를 반환 + * file system에서 "{fileSystemPath}/platform/category_name/product_id.txt"에 해당하는 product의 가격 정보를 반환 * */ public Price getProductDetails(String platform, String category_name, String product_id) {