As a big framework, Spring provided the way to access data from MongoDB database, called Spring-Data for MongoDB. In this article, I won’t show you how to use Spring-Data, but will show you how to use the Morphia in Spring.
1. What is Morphia?
Morphia is a lightweight type-safe library for mapping Java objects to/from MongoDB:
- Easy to