部分控件不需要返回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) { &...
(1).final 修饰符通常和 static 修饰符一起使用来创建类常量。(2).父类中的 final 方法可以被子类继承,但是不能被子类重写,声明 final 方法的主要目的是防止该方法的内容被修改。public class Member {  ...
java判断字符是否是一个字母System.out.println(Character.isLetter('a'));java判断字符是否是一个数字System.out.println(Character.isDigit('0'));java判断字符是否是一个空白Sy...
System.out.println("当前时间戳(秒): " + System.currentTimeMillis()/1000); System.out.println("当前时间戳(毫秒): " +&nb...
pattern表示正则表达式,接收正则表达式作为参数例子:String content = "my name is gaojiufeng"; String pattern = "....
(7).java方法重载一个类的两个方法拥有相同的名字,但是有不同的参数列表,叫做方法重载,例如public static int sum(int a, int b) { retur...