带分页的post请求——angularJs

前端请求头
注意变量之间是用逗号隔开的

$http.post("../brand/search.do?page="+$scope.paginationConf.currentPage+"&size="+$scope.paginationConf.itemsPerPage,$scope.searchEntity)

后端分页信息直接接收,实体信息用requsetBody注解接收

public PageResult search(int page,int size,@RequestBody TbBrand tbBrand){
    return brandService.findPage(page,size,tbBrand);
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章