Servlet.service() for servlet [appServlet] in context with path [/item] threw exception [Request processing failed
以前犯过的一个小错误,不过忘记怎么修改了,所以还是记录下来好一点
严重: 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属性后面多了个空格
希望以后要记住,没用的空格要删掉