//文件目录与JsonToJava.class处于同级目录
Reader reader = new InputStreamReader(JsonToJava.class.getResourceAsStream("js/Server2.json"), "UTF-8");
//文件目录与JsonToJava.class处于不同级目录,JsonToJava.class的文件目录层级比/js/Server2.json所在的目录更深一层
Reader reader = new InputStreamReader(JsonToJava.class.getResourceAsStream("../js/Server2.json"), "UTF-8");
//不考虑资源目录与类的目录层级
InputStream in = new FileInputStream(System.getProperty("user.dir")+"/cfg/js/Server1.json");
Reader reader = new InputStreamReader(in, "UTF-8");