SpringBoot处理动态URL Posted on 2023-07-08 In 编程 , Java , SpringBoot Waline: 可以像下面这样写: 123456@ResponseBody@RequestMapping("/info/{id}/{username}")public String info(@PathVariable("id") Integer id, @PathVariable("username") String username){ return id.toString()+" : "+username;}