Spring with MongoDb and http request