我在页面需要请求后天拿到分页数据,我把分页的属性包装成了一个DTO,代码如下
public class PageDto {
int length;
int start;
int draw;
List<DataTableOrder> order;
List<DataTableColumn> columns;
public void setLength(int length) {
this.length = length;
}
public void setStart(int start) {
this.start = start;
}
public void setDraw(int draw) {
this.draw = draw;
}
public void setOrder(List<DataTableOrder> order) {
this.order = order;
}
public void setColumns(List<DataTableColumn> columns) {
this.columns = columns;
}
public int getLength() {
return length;
}
public int getStart() {
return start;
}
public int getDraw() {
return draw;
}
public List<DataTableOrder> getOrder() {
return order;
}
public List<DataTableColumn> getColumns() {
return columns;
}
}
我从前台穿参数的时候怎么写@Param('')引号里面的东西,才能完整的拿到传递的分页数据?
我写的@Param("..")只能拿到int类型的属性值,list拿不到