SEVERE: Servlet.service() for servlet [jsp] in context with
答案:1 悬赏:80 手机版
解决时间 2021-03-19 19:53
- 提问者网友:树红树绿
- 2021-03-19 16:03
SEVERE: Servlet.service() for servlet [jsp] in context with
最佳答案
- 五星知识达人网友:持酒劝斜阳
- 2021-03-19 17:07
NumberFormatException 数据类型转换异常,检查一下下面几行是否有无法转换的String
goods.setPid(Integer.valueOf(rs.getString(1)));
goods.setTid(Integer.valueOf(rs.getString(7)));
goods.setCid(Integer.valueOf(rs.getString(8)));
goods.setNumber(Integer.valueOf(rs.getString(9)));
这几行也可以这么写
goods.setPid(rs.getInt(1));
goods.setTid(rs.getInt(7));
goods.setCid(rs.getInt(8));
goods.setNumber(rs.getInt(9));
goods.setPid(Integer.valueOf(rs.getString(1)));
goods.setTid(Integer.valueOf(rs.getString(7)));
goods.setCid(Integer.valueOf(rs.getString(8)));
goods.setNumber(Integer.valueOf(rs.getString(9)));
这几行也可以这么写
goods.setPid(rs.getInt(1));
goods.setTid(rs.getInt(7));
goods.setCid(rs.getInt(8));
goods.setNumber(rs.getInt(9));
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯