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

2020-12-13 15:22

阅读:958

标签:tor   ace   vc开发   mamicode   mic   state   ons   exce   dispatch   

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

技术图片

 

 错误写法:

技术图片

 

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

 

正确写法 

技术图片

 

 DispatchDTO内容如下:

技术图片

 

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

标签:tor   ace   vc开发   mamicode   mic   state   ons   exce   dispatch   

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


评论


亲,登录后才可以留言!