-
直接上代码:
@RequestMapping("/test1/{id}/{name}") public String test1(@PathVariable("id") int id, @PathVariable("name") String name){ return id + " " + name; }
调用:
即可!!
springBoot编写restful风格接口
最新推荐文章于 2024-08-12 20:09:00 发布
直接上代码:
@RequestMapping("/test1/{id}/{name}")
public String test1(@PathVariable("id") int id, @PathVariable("name") String name){
return id + " " + name;
}
调用:
即可!!