Spring rest api with mongo db