Exception:No primary or single public constructor found for interface java.util.List - and no defaul

异常:No primary or single public constructor found for interface java.util.List - and no default constructor found either

 上图为错误示范

 原来是因为在接收前端接受来的 List 参数时,使用post请求需要加上@RequestBody

@RequestBody 

@RequestBody 

@RequestBody

猜你喜欢

转载自blog.csdn.net/lps12345666/article/details/129947453
今日推荐