💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
[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; } ~~~