Skip to content

Commit

Permalink
csv 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
codingssagae committed Sep 28, 2024
1 parent 1a8832b commit 60587cb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/main/java/goormthonUniv/floating/CSVDataLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class CSVDataLoader implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
System.out.println("CSVDataLoader is running...");
try(Reader reader = new InputStreamReader(new ClassPathResource("BalanceGame.csv").getInputStream());
try(Reader reader = new InputStreamReader(new ClassPathResource("csv/BalanceGame.csv").getInputStream());
CSVReader csvReader = new CSVReader(reader)){

String[] line;
Expand All @@ -43,7 +43,7 @@ public void run(String... args) throws Exception {
balanceGameRepository.save(balanceGame);
}
}
try(Reader reader = new InputStreamReader(new ClassPathResource("TalkSubject.csv").getInputStream());
try(Reader reader = new InputStreamReader(new ClassPathResource("csv/TalkSubject.csv").getInputStream());
CSVReader csvReader = new CSVReader(reader)){

String[] line;
Expand All @@ -62,7 +62,7 @@ public void run(String... args) throws Exception {

}
}
try(Reader reader = new InputStreamReader(new ClassPathResource("MiniGame.csv").getInputStream());
try(Reader reader = new InputStreamReader(new ClassPathResource("csv/MiniGame.csv").getInputStream());
CSVReader csvReader = new CSVReader(reader)){

String[] line;
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/BalanceGame.csv

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/MiniGame.csv

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/TalkSubject.csv

This file was deleted.

0 comments on commit 60587cb

Please sign in to comment.