【发布时间】:2015-06-05 13:49:51
【问题描述】:
我正在使用java。我有这些 json 数据,彼此有 2 个空格。
{"created_at":"Mon Jun 01 09:59:50 +0000 2015","id":605312790992056324,"id_str":"605312790992056324"}
{"created_at":"Mon Jun 01 09:59:51 +0000 2015","id":605312794565713920,"id_str":"605312794565713920"}
{"created_at":"Mon Jun 01 09:59:51 +0000 2015","id":605312798445297664,"id_str":"605312798445297664"}
{"created_at":"Mon Jun 01 09:59:53 +0000 2015","id":605312806771146753,"id_str":"605312806771146753"}
然后我导入 MySQL 但发现了这些问题。我认为它仍然可以连接到数据库但无法读取空间。任何人都知道如何添加代码来应对 2 空间?之前谢谢。 4个数据没问题,但是我有很多数据...
connection sucess
java.io.FileNotFoundException: C:\Users\june1.json (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.util.Scanner.<init>(Scanner.java:680)
at java.util.Scanner.<init>(Scanner.java:674)
at converter.Converter.ReadJSON(Converter.java:30)
at converter.Converter.main(Converter.java:18)
【问题讨论】:
-
请再次阅读您的异常消息