以前犯過的一個小錯誤,不過忘記怎么修改了,所以還是記錄下來好一點
嚴重: Servlet.service() for servlet [appServlet] in context with path [/item] threw exception [Request processing failed; nested exception is java.lang.NumberFormatException: For input string: "1 "] with root cause
java.lang.NumberFormatException: For input string: "1 "
經過查找我發現地址欄那里的page后面有錯
那是分頁的屬性,然后找了很久都沒發現有什么錯,最后還是找到了這個page屬性后面多了個空格
希望以后要記住,沒用的空格要刪掉