BaseAction 使用
public class AreaAction extends BaseAction<Area> { @Autowired private AreaService areaService; @Action("areaAction_pageQuery") public String pageQuery() throws Exception { Pageable pageable = new PageRequest(page-1, rows); Page<Area> page = areaService.findAll(pageable); this.java2Json(page, new String[]{"subareas"}); return NONE; } }