Method has too many Body parameters的处理办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaofanren1111/article/details/81778645
  1. @RequestMapping(value="/test", method=RequestMethod.GET)

  2. Model test(@RequestParam("name") final String name,@RequestParam("age") final int age);

  3. Feign中你可以有多个@RequestParam,但只能有不超过一个@RequestBody。

java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0

@RequestParam(“userId”) String userId   中的扩号 加里面的参数名忘记写

猜你喜欢

转载自blog.csdn.net/xiaofanren1111/article/details/81778645