Exception: java.io.FileNotFoundException: /Users/wenshao/Downloads/000002_0.json (No such file or directory)
fastjson/src/test/java/com/alibaba/fastjson/validate/JSONValidateTest_file.java
Line 19 in 9b8b186
| | Filefile = newFile("/Users/wenshao/Downloads/000002_0.json"); |
fastjson/src/test/java/com/alibaba/fastjson/validate/JSONValidateTest_file.java
Line 31 in 9b8b186
| | Filefile = newFile("/Users/wenshao/Downloads/000002_0.json"); |
fastjson/src/test/java/com/alibaba/fastjson/validate/JSONValidateTest_file.java
Line 53 in 9b8b186
| | Filefile = newFile("/Users/wenshao/Downloads/000002_0.json"); |
2条答案
按热度按时间mlnl4t2r1#
这个需要你本地目录下有这个文件吧, 你没有这个文件当然报错了
fnvucqvd2#
Paths should not be hard-coded like this.