打赏

springmvc控制器传可变路径

  

@RequestMapping("/clone{path}")
public String cloneModules(HttpServletRequest req,@PathVariable String path){
return "clone"+path;
}

integer等其它类型也可以

posted @ 2018-08-29 16:41  每天都要学一点  阅读(384)  评论(0编辑  收藏  举报