1、创建如下项目结构

Spring+Struts2+MyBatis+分页(mybatis无代理)增删改查

Spring+Struts2+MyBatis+分页(mybatis无代理)增删改查

Spring+Struts2+MyBatis+分页(mybatis无代理)增删改查

2、在src下的com.entity包下创建Dept.java

package com.entity;
/**
 * 部门表
 * @author CHIL
 *
 */
public class Dept {
    private Integer deptno; //部门编号
    private String dname; //部门名称
    private String loc; //位置
   

    public Dept() {
    }

    public Dept(Integer deptno, String dname, String loc) {
        this.deptno = deptno;
        this.dname = dname;
        this.loc = loc;
    }

    public Integer getDeptno() {
        return deptno;
    }

    public void setDeptno(Integer deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }
    
}

Dept.java
Dept.java

相关文章:

  • 2021-04-21
  • 2021-08-24
  • 2022-01-17
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-09-13
相关资源
相似解决方案