实体
1 package com.chh.entity; 2
3 import java.io.Serializable; 4 /**
5 * 序列化user实体
6 * @author chh 7 *
8 */
9 public class User implements Serializable {
10
11 private static final long serialVersionUID = 677484458789332877L;
12 private int id;
13 private String name;
14 private String email;
15 private String addr
《一线大厂Java面试题解析+后端开发学习笔记+最新架构讲解视频+实战项目源码讲义》
【docs.qq.com/doc/DSmxTbFJ1cmN1R2dB】 完整内容开源分享
ess;
16
17 public int getId() {
18 return id;
19 }
20
21 public void setId(int id) {
22 this.id = id;
23 }
24
25 public String getName() {
26 return name;
27 }
28
29 public void setName(String name) {
30 this.name = name;
31 }
32
33 public String getEmail() {
34 return email;
35 }
36
37 public void setEmail(String email) {
38 this.email = email;
39 }
40
41 public String getAddress() {
42 return address;
43 }
44
45 public void setAddress(String address) {
46 this.address = address;
47 }
48
49 public static long getSerialversionuid() {
50 return serialVersionUID;
51 }
52
53 @Override
54 public String toString() {
55 return this.id + “#” + this.name + “#” + this.email + “#” + this.address;
56 }
57
58 }
1 package com.chh.entity; 2
3 import java.util.HashMap; 4 import java.util.List; 5
6 /**
7 *
8 * @author chh 9 *
10 */
11 public class Users {
12 private List users;
13 private User[] userArr;