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]