Spring Boot url地址問題
報錯這個是怎么回事啊,明明就是照老師的url There was an unexpected error (type=Bad Request, status=400). Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "two"
2017-12-29
英語捉急。
2017-12-29
請求鏈接中傳的參數值不對。
2017-12-29
類型轉換異常。把字符串“two”轉換成整形數字報錯。在進行數據類型轉換時,最好先判斷是否非空;是否是字符串類型數字,可以用正則表達式去匹配校驗是否是數字。