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层的代码:
我也是这个问题,感谢楼主!!!
把idList的构造器放到if语句外边试试