1、首先,搭建一个服务器的工程:JsonProject这个项目
源代码:
Personjava
package comjsondomain;
public class Person {
private int id;
private String name;
private String address;
public Person() {
super();
}
public Person(int id, String name, String addrss) {
super();
thisid = id;
thisname = name;
thisaddress = addrss;
}
public int getId() {
return id;
}
public void setId(int id) {
thisid = id;
}
public String getName() {
return name;
}
public void setName(String name) {
thisname = name;
}
public String getAddress() {
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)