pom.xml文件是管理maven依赖的,建议去看慕课的maven视频,里面讲的很详细。get和set方法是JavaBean的设计思想,右击->Source->Generate Getters and Setters就能快速创建
2017-02-25
..纠正一下,是commons-io2.5把视频的readFileToString舍弃了。。新方法是content = FileUtils.readFileToString(file, "utf-8");需要设置格式。。话说为什么不难删自己的评论
2017-02-25
{"name" : "佳佳",
"age" : 22.2,
"birthday" : "1994-01-01",
"school": "江汉大学",
"major": ["英语","舞蹈"],
"has_boyfriend": true,
"car":null,
"house":null
}
"age" : 22.2,
"birthday" : "1994-01-01",
"school": "江汉大学",
"major": ["英语","舞蹈"],
"has_boyfriend": true,
"car":null,
"house":null
}
2017-02-16
DiaoSi javabean类,get、set方法自己用eclipse自动生成吧
public class DiaoSi {
private String name;
private double age;
private String birthday;
private String school;
private String[] major;
private boolean has_girlfriend;
private Object car;
private Object house;
private String comments;
}
public class DiaoSi {
private String name;
private double age;
private String birthday;
private String school;
private String[] major;
private boolean has_girlfriend;
private Object car;
private Object house;
private String comments;
}
2017-02-09