Spring application events lifecycle and earlyApplicationEvents
Not long ago I learned the hard way the way spring handles earlyApplication events when we started having problems in one of our projects Basically we were using a MongoDB database as a cache layer, so when the application would startup we would pull most…
Custom converter for Mongodb and Spring Data for BigDecimal type
Recently 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 back to BigDecimal which in most cases…
Spring boot and mongodb with geo-localisation queries 1/3
MongoDB offers a number of indexes and query mechanisms to handle geospatial information, below are some of the features offered by the database : Surfaces Location Data Query Operations Geospatial indexes ….. More detailed information can be found at their website : MongoDB Geospatial queries…