admin 发表于 2015-1-19 15:39

java.math.BigInteger cannot be cast to java.lang.Integer

java.math.BigInteger cannot be cast to java.lang.Integer
获取数量的时候 转换错误:
sql语句:SELECT COUNT(*) FROM online_test_student WHERE test_id=? AND test_status=?
修改前:Integer studentNumber= (Integer)query.uniqueResult();
修改后:Integer studentNumber= Integer.parseInt(query.uniqueResult().toString());
页: [1]
查看完整版本: java.math.BigInteger cannot be cast to java.lang.Integer