Skip to content

Commit

Permalink
Merge pull request #65 from JNU-econovation/fix_for_jar
Browse files Browse the repository at this point in the history
fix: jar에서 File 시스템이 아닌 InputStream으로 파일을 읽을 수 있도록 함
  • Loading branch information
inferior3x authored Nov 30, 2024
2 parents a0c5808 + 04ae9cb commit da6f53e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public NetworkConfig(@Value("${spring.profiles.active:default}") String profile,

//JSON 파일 읽기
try {
map = mapper.readValue(resource.getFile(), Map.class);
map = mapper.readValue(resource.getInputStream(), Map.class);
} catch (IOException e) {
throw new RuntimeException(jsonPath + " 로드 실패");
}
Expand Down

0 comments on commit da6f53e

Please sign in to comment.