早上發現一個奇怪問題,跟蹤一下,發現了如下問題,記錄一下:
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
這個異常的
更多信息請查看IT技術專欄