Skip to content

Commit

Permalink
Merge pull request #27 from Imsyp/main
Browse files Browse the repository at this point in the history
change base path
  • Loading branch information
Imsyp authored Sep 21, 2024
2 parents 0584738 + d597de7 commit 2c9ccf0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file not shown.
Binary file not shown.
Binary file modified server/build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<Map<String, Integer>> prices = new ArrayList<>();

Expand Down
3 changes: 2 additions & 1 deletion server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
spring.application.name=swdc
spring.application.name=swdc
server.port=8090

0 comments on commit 2c9ccf0

Please sign in to comment.