Caused by: java.sql.SQLException: 'Infinity' is not a valid numeric or approximate numeric value

记录一下这个错误:

错误原因是:分母不能为0

hibernate在对数据进入写操作是,实体类的某一个字段为NaN(也就是在计算时分母为0)

hibernate会报这个错误。

猜你喜欢

转载自blog.csdn.net/NeverNeverStopS_/article/details/80091711
今日推荐