部分控件不需要返回response,自动默认带搜索和分页查询界面控件。
/**
* 序列号
**/
private static final long serialVersionUID = 1L;
/**
* 页码
**/
@ApiField(name = "页码", notes = "页码", inputType = InputType.InputText, allowTypes = {ApiField.AllowType.WebHidden}, accessMode = AccessMode.WebHidden, position = 1)
@ApiModelProperty(value = "页码", required = true)
private Integer pageIndex;
/**
* 每页条数
**/
@ApiField(name = "每页条数", notes = "每页条数", inputType = InputType.InputText, allowTypes = {ApiField.AllowType.WebHidden}, accessMode = AccessMode.WebHidden, position = 2)
@ApiModelProperty(value = "每页条数", required = true)
private Integer pageSize;
/**
* 关键字
**/
@ApiField(notes = "请输入供应商名称", width = "300px", inputType = InputType.InputSearch, allowTypes = {ApiField.AllowType.WebReadWrite}, accessMode = ApiField.AccessMode.WebReadWrite, position = 3)
@ApiModelProperty(value = "searchKey")
private String searchKey;
/**
* 获取 页码
*
* @return pageIndex 页码
*/
public Integer getPageIndex() {
return this.pageIndex;
}
/**
* 设置 页码
*
* @param pageIndex 页码
*/
public void setPageIndex(Integer pageIndex) {
this.pageIndex = pageIndex;
}
/**
* 获取 每页条数
*
* @return pageSize 每页条数
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* 设置 每页条数
*
* @param pageSize 每页条数
*/
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
/**
* 获取 关键字
*
* @return searchKey 关键字
*/
public String getSearchKey() {
return this.searchKey;
}
/**
* 设置 关键字
*
* @param searchKey 关键字
*/
public void setSearchKey(String searchKey) {
this.searchKey = searchKey;
}public class test { public static void main(String[] args) { &...
Java5 引入了一种主要用于数组的增强型 for 循环,类似js中的for inpublic class Member { public static void main(String[]&...
System.out.println("当前时间戳(秒): " + System.currentTimeMillis()/1000); System.out.println("当前时间戳(毫秒): " +&nb...
java正则表达式的捕获组捕获组可以将匹配到的结果根据正则中的括号进行分组,这里变量我加了$符,php转java的坏习惯,懒得改了,能跑就行// 匹配字符串 String $line = "gaojiufeng 1994! ok?...
(7).java方法重载一个类的两个方法拥有相同的名字,但是有不同的参数列表,叫做方法重载,例如public static int sum(int a, int b) { retur...
java FileInputStream(12.1)FileInputStream将文件读入作为流来处理,有两种实例化方式// 方式1 FileInputStream fis = new FileInputStream("./learn.t...