做项目的过程中,遇到了该异常信息

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

原来是因为在接收前端接受来的 List 参数时,没有加 @RequestParam 注解导致,该注解不能省略

后端接口图
在这里插入图片描述
apifox接口图
在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐