后端部分实体类:
package com.wedu.springboot.entity; public class Student { private Integer id; private String mobile; private String userName; public Student() { super(); } public Student(String mobile, String userName) { super(); this.mobile = mobile; this.userName = userName; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getMobile() { return mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } @Override public String toString() { return "Student [id=" + id + ", mobile=" + mobile + ", userName=" + userName + "]"; } }