Subscribe Now
Trending News
28 Mrz 2023
big_decimal, converter, mongodb, spring, spring_boot, spring_data

Custom converter for Mongodb and Spring Data for BigDecimal type 

This post was originally published on this siteRecently I found that MongoDB does not support java’s java.math.BigDecimal as you can read in the official spring data mongodb documentation As it turns out java.math.BigDecimal will be converted to java.lang.String when saved to the database and parsed…