Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract com

启动时报 Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract com

错误代码
@RequestMapping(value = "/message/list2", method = RequestMethod.POST)
MyResult list2(@RequestBody MyPage myPage,@RequestBody MessageDto entity);

 

 

fegin中你可以有多个@RequestParam但只能有不超过一个@RequestBody。

 

 

你可能感兴趣的:(spriing,cloud,spring,boot,java开发)