User类: public class User implements Serializable{ public User(){} private Integer id; private String name; private Integer age; private static final long serialVersionUID = 1L; public Integer getId() { return id; } public void setId(Integer id) { thi…