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内容如下:

作者: 元宝爸爸

出处:https://www.cnblogs.com/wozixiaoyao/p/11965398.html

版权:本文采用「署名-非商业性使用-相同方式共享 4.0 国际」知识共享许可协议进行许可。

觉得文章不错,点个关注呗!

原文地址:https://www.cnblogs.com/xinrong2019/p/11579238.html