Main.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:ATEBot 作者:
public static void saveConfig(){
    try{
    GsonBuilder builder = new GsonBuilder();
    Gson gson = builder.setPrettyPrinting().enableComplexMapKeySerialization().create();
Map<String, Object> hm = new HashMap<String, Object>();
hm.put("token", token);
hm.put("webNumThreads", webNumThreads);
hm.put("playinformation", playinformation);
hm.put("webPort", webPort);
hm.put("accounts", accounts);
hm.put("messages", messages);

Writer writer = new FileWriter("botsetting.json");
gson.toJson(hm, writer);
writer.close();
    }catch (Exception e) {}
 }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号