idea报错:No primary or single public constructor found for interface java.util.List - and no default constructor found either] with root cause

原因:

  忘记在controller层的传参的位置加上 @RequestParam 注解,导致参数未能传递过来

解决:

加上注解:

 

posted @ 2022-10-15 14:12  阿杰小子  阅读(5716)  评论(2)    收藏  举报