SpringBoot 接收get形式接口传入多个参数

@RequestMapping(value = "/sale_prj/{salePrjId}?page={page}&rows={rows}", method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
    public @ResponseBody ResponseEntity contractProject(@PathVariable long salePrjId, @PathVariable int page, @PathVariable int rows) {

        ContractProject contractProject=new ContractProject();
        if (projectService.getContractProject(salePrjId,page,rows,contractProject)) {
            return new ResponseEntity<>(contractProject, HttpStatus.OK);
        } else {
            return new ResponseEntity<>(contractProject, HttpStatus.FAILED_DEPENDENCY);
        }
    }

新开通一个个人微信公众号,感兴趣的朋友可以扫描点击关注下哦,在接下的工作中的所感所想、优质资源也会在公众号内更新,希望我们可以一起交流共同进步

你可能感兴趣的:(Spring,Boot,java,Spring,Boot)