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属性后面多了个空格

希望以后要记住,没用的空格要删掉


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM