MySQLDataException: '1.43350049529E12' in column '1' is outside valid range for the datatype INTEGER

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '1.43350049529E12' in column '1' is outside valid range for the datatype INTEGER. 

通过console中的运行日志信息可以看到,我的这个code是一个Integer类型,但是现在有值超出了Integer的范围,所以需要把pojo对应的code的类型更改为比Integer更大范围的是引用类型,我这里改为了Long类型。

发布了44 篇原创文章 · 获赞 36 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/ailian_f/article/details/89645055