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

錯誤寫法:

錯誤原因,沒有默認的構造器,需要傳輸一個傳輸類
正確寫法

DispatchDTO內容如下:

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

錯誤寫法:

錯誤原因,沒有默認的構造器,需要傳輸一個傳輸類
正確寫法

DispatchDTO內容如下:

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。