1、User.java
- package com.qingruan.bean;
-
- import java.io.Serializable;
-
- public class User implements Serializable {
- private Integer userId;
- private String userName;
- private String userBirthday;
- private String userSex;
- private String userAddress;
-
- @Override
- public String toString() {
- return "User{" +
- "userId=" + userId +
- ", userName='" + userName + '\'' +
- ", userBirthday='" + userBirthday + '\'' +
- ", userSex='" + userSex + '\'' +
- ", userAddress='" + userAddress + '\'' +
- '}';
- }
-
- public User() {
- }
-
- public User(Integer userId, String userName, String userBirthday, String userSex, String userAddress) {
- this.userId = userId;
- this.userName = userName;
- this.userBirthday = userBirthday;
- this.userSex = userSex;
- this.userAddress = userAddress;
- }
-
- public Integer getUserId() {
- return userId;
- }
-
- public void setUserId(Integer userId) {
- this.userId = userId;
- }
-
- public String getUserName() {
- return userName;
- }
-
- public void setUserName(String userName) {
- this.userName = userName;
- }
-
- public String getUserBirthday() {
- return userBirthday;
- }
-
- public void setUserBirthday(String userBirthday) {
- this.userBirthday = userBirthday;
- }
-
- public String getUserSex() {
- return userSex;
- }
-
- public void setUserSex(String userSex) {
- this.userSex = userSex;
- }
-
- public String getUserAddress() {
- return userAddress;
- }
-
- public void setUserAddress(String userAddress) {
- this.userAddress = userAddress;
- }
- }
2、IUserDao.java
- package com.qingruan.dao;
-
- import com