Skip to content

Commit

Permalink
兼容优化:加入相对文件了路径
Browse files Browse the repository at this point in the history
  • Loading branch information
hcjhope committed Apr 23, 2017
1 parent 90cff94 commit 1a43118
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void main(String[] args) {
InputStream in = null;
try {
// 文件输入流
in = new FileInputStream(new File("/Volumes/HGST/IdeaProjects/xbin-store/xbin-store-service-admin/src/main/resources/BigAD.json"));
in = BigADGenerate.class.getResourceAsStream("/BigAD.json");
int len;
while ((len = in.read(b)) > 0) {
// 字符串拼接
Expand Down

0 comments on commit 1a43118

Please sign in to comment.