Failed to convert value of type 'java.lang.String' to required type 'int[]'; nested exception is java.lang.NumberFormatException: For input string
現在想要前端傳調查問卷每一題的得分,然后在后端進行處理。由于有多個計算指標所以想要具體每道題的得分,有幾十道題;我想要他傳個陣列過來。然后就不知道postman測驗時該怎么輸引數了求解
uj5u.com熱心網友回復:
傳遞陣列的話,可以用在前端js里面用array.join(",");把陣列元素用逗號拼接成字串傳遞到后端,后端獲取到后用trim()方法截成陣列,你可以試試
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/121545.html
標籤:Java EE
