outside valid range for the datatype INTEGER.

org.springframework.dao.DataIntegrityViolationException:
Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: ‘1.402562696503E12’ in column ‘8’ is outside valid range for the datatype INTEGER.

找了半天发现数据库表中的一个bigint类型,与我在对应实体类的属性的类型不一致,我写的是long,实际上是Long

发布了11 篇原创文章 · 获赞 2 · 访问量 329

猜你喜欢

转载自blog.csdn.net/zds18205657013/article/details/104821198