一个完整的idea spring boot 项目及坑---2.bean --EUDataGridResult类

知识点:

1.该类存在的意义是作为使用mybatis分页插件及eazyui datagrid的数据容器.

eazyui datagrid 需要接受总数据条数 total 和 总数据 rows 才能正常在前台显示出数据.


package com.example.demo.bean;

import java.util.List;

public class EUDataGridResult {

    private long total;
    private List<?> rows;

    public long getTotal() {

        return total;
    }
    public void setTotal(long total) {

        this.total = total;
    }
    public List<?> getRows()
    {
        return rows;
    }
    public void setRows(List<?> rows) {
        this.rows = rows;
    }
}

猜你喜欢

转载自blog.csdn.net/LJXZDN/article/details/80224381