帶分頁的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);
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章