多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] # 参数绑定 ## get方式 `localhost:8080/hello/1994` ~~~ @GetMapping("hello/{id}") @ResponseBody public String hello(@PathVariable("id") Integer id) { return "spring boot " + id; } ~~~ `localhost:8080/hello?name=x` ~~~ @GetMapping("hello") @ResponseBody public String hello(@RequestParam(value = "name", required = false, defaultValue = "111") Integer id) { return "spring boot " + id; } ~~~