Exception in thread "main" java.lang.NumberFormatException: For input string: "AF"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at com.mapull.example.section1.StringToInt.method3(StringToInt.java:23)
at com.mapull.example.section1.StringToInt.main(StringToInt.java:11)
大数据情况下查询数据超过21亿,通过resultmap返回count值,然后转为int类型报错,是应为String转为int超过了21亿,只能通过Long接受了(大数据情况下容易溢出)