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;
    }

}

 

posted on 2017-08-15 17:50  0001  阅读(489)  评论(0编辑  收藏  举报