问答详情
源自:4-5 实现信息批量删除

HTTP Status 500 - For input string: "",哪位兄弟解答下

java.lang.NumberFormatException: For input string: ""

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:592)

at java.lang.Integer.valueOf(Integer.java:766)

at com.imooc.message.service.impl.MessageServiceImpl.deleteBatch(MessageServiceImpl.java:33)

at com.imooc.message.servlet.DeleteBatchServlet.doPost(DeleteBatchServlet.java:28)

service层的代码:

http://img.mukewang.com/58172d020001f9a806410216.jpg

提问者:yhyh123 2016-10-31 19:38

个回答

  • Catalina7
    2018-03-13 22:26:07

    我也是这个问题,感谢楼主!!!

  • gackey
    2016-11-01 23:55:26

    把idList的构造器放到if语句外边试试