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

1.问题描述
在这里插入图片描述
前端 请求的参数 是 query形式, 参数在url中

报错信息:

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

2.解决办法
controller中的 请求方法 参数 加上 @RequestParam
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_45432276/article/details/132641692
今日推荐