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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM