内容 |
早上发现一个奇怪问题,跟踪一下,发现了如下问题,记录一下: Mysql 数据库的format 查看文档:Formats the number X to a format like'#,###,###.##', rounded to D decimal places, and returns the result as a string. If D is0, the result has no decimal point or fractional part.整数部分超过三位的时候以逗号分割,并且返回的结果是string类型的。 也就是说,如果我这边转型的数据比较大的话,如果是 5000.000 这个数字的话,在转型后返回的是string类型,针对这样的数据,他是会爆 org.springframework.dao.TransientDataAccessResourceException 这个异常的 |