java.math.BigInteger cannot be cast to java.lang.Integer: g( I: n$ }- r6 w v4 d
获取数量的时候 转换错误: ) L' Z; m8 _6 K Y0 m5 {# ?2 Z" qsql语句:SELECT COUNT(*) FROM online_test_student WHERE test_id=? AND test_status=?) O, l, @# |- n, N
修改前:Integer studentNumber = (Integer)query.uniqueResult(); _; X' B d/ ^* M9 X修改后:Integer studentNumber = Integer.parseInt(query.uniqueResult().toString());* U# z8 R7 V7 O) Q- q9 w! M