java.lang.IllegalStateException: No primary or single unique constructor found for interface java.util.List

发布时间 2023-07-11 22:52:09作者: 流年乱了沉浮。

 

 

错误:No primary or single unique constructor found for interface java.util.List(没有为List接口找到主要的或唯一的构造函数)

原因:请求的参数没有匹配上处理函数的参数

 

 

解决:为List参数添加@RequestParam注解即可