Loading

SpringMVC开发中遇到的异常1:No primary or default constructor found for interface java.util.List

Request processing failed; nested exception is java.lang.IllegalStateException: No primary or default constructor found for interface java.util.List

 

 错误写法:

 

错误原因,没有默认的构造器,需要传输一个传输类

 

正确写法 

 

 DispatchDTO内容如下:

 

posted @ 2019-09-24 16:49  元宝爸爸  阅读(50643)  评论(1编辑  收藏  举报