java.lang.IllegalStateException: No primary or single public constructor found for interface java.ut

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

 

报错的原因是在Controller层直接绑定了List类型的参数,spring找不到构造器

解决方法,将List类型的参数封装到VO中,Controller接收VO参数

java.lang.IllegalStateException: No primary or single public constructor found for interface java.ut_第1张图片

你可能感兴趣的:(spring/mybatis,java,spring)