📌  相关文章
📜  pathvariable 和 requestparam 一起 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:52.612000             🧑  作者: Mango

代码示例1
@RequestMapping(value = "/child/{nodeId}/{relType}",method = RequestMethod.GET, produces=MediaType.APPLICATION_JSON)    
        public Iterable getConnectedNodes(@RequestParam(value="page", required=false) int page, @RequestParam(value="size", required=false) int size, @PathVariable("nodeId") String nodeId, @PathVariable("relType") String relType) {
            return nodeService.getConnectedNodes(nodeId, relType,page,size);    

}