💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
@RequestBody **1.Demo演示** ~~~ @RequestMapping(path="fun4", method=RequestMethod.POST) public String fun4(@RequestBody User user){ System.out.println(user); return "/demo1"; } ~~~ **2.请求方式为json** ![](https://img.kancloud.cn/c8/52/c852915033991fd11fe4872d1bff70ac_751x233.png) 3.接收参数的对象(如:User),如果显式声明了有参构造,还必须声明无参构造