public class BaseController extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
BaseController() |
| 限定符和类型 | 方法和说明 |
|---|---|
AjaxResult |
error()
返回失败消息
|
AjaxResult |
error(String message)
返回失败消息
|
protected TableDataInfo |
getDataTable(List<?> list)
响应请求分页数据
|
void |
initBinder(org.springframework.web.bind.WebDataBinder binder)
将前台传递过来的日期格式的字符串,自动转化为Date类型
|
protected void |
startPage()
设置请求分页数据
|
AjaxResult |
success()
返回成功
|
AjaxResult |
success(String message)
返回成功消息
|
protected AjaxResult |
toAjax(boolean result)
响应返回结果
|
protected AjaxResult |
toAjax(int rows)
响应返回结果
|
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
protected void startPage()
protected TableDataInfo getDataTable(List<?> list)
protected AjaxResult toAjax(int rows)
rows - 影响行数protected AjaxResult toAjax(boolean result)
result - 结果public AjaxResult success()
public AjaxResult error()
public AjaxResult success(String message)
public AjaxResult error(String message)
Copyright © 2021. All rights reserved.