服务端
一.下载xfire资源包
二.倒入lib下所有包以及xfire-all-1.2.6.jar
三.服务端目录结构![](https://i-blog.csdnimg.cn/blog_migrate/2492fecf3145d4ead0b7cf2465cd0a7f.png)
1.创建pojo实体类User
package cn.zhao.pojo;
import java.io.Serializable;
public class User implements Serializable {
private static final long serialVersionUID = -1595654999252416815L;
private String name;
private String msg;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public User() {
super();
}
public User(String name, String msg) {
super();
this.name = name;