TTP Status 400 - Required Integer parameter 'XXXX' is not present與HTTP Status 500 - Required Integer parameter 'item_id' is not present的區別


TTP Status 400 - Required Integer parameter 'XXXX' is not present;

在使用@RequestParam常用於處理簡單類型的綁定。中使用required=true時,表示請求中一定要有相應的參數,如果請求沒有參數就會包以上錯誤。

HTTP Status 500 - Required Integer parameter 'item_id' is not present

在使用@RequestParam常用於處理簡單類型的綁定。中使用required=true時,value=“xxxx”,請求中必須含有xxxx屬性名的參數,如果請求中含有參數但參數中沒有xxxx屬性就會報HTTP Status 500 - Required Integer parameter 'item_id' is not present;


免責聲明!

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



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM