AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
#### 使用@RequestParam 获取参数 ``` @RequestParam(value = "name", required = false) String name 默认的情况下@RequestParam 标注的参数是不能为空的,为了让它能够 为空,可以配置其属性 required 为 false ``` ``` 数组参数 @RequestParam("data") int[] data 前端参数格式: data=1,2,3 ``` ``` json @RequestBody User user header:Content-Type:application/json body: { "name": "sn", "age": 11 } ``` ``` url传递参数 @GetMapping("/{id}") public Long test(@PathVariable("id") Long id){ return id; } /test/1111 ```