17Feb/120
Working with Mongodb in Java with Spring-data Part 1: Configuration
Mongodb is a document-oriented NoSql (reads not-only-sql) database designed with scalability in mind. The Spring-data project offers a nice high-level framework take makes working with mongodb easy with java. Key feature includes:
- Annotation based mapping between java objects and BSON data.
- MongoTemplate which provide abstraction for mongo java driver functionalities
- Cross store support for using mongodb together with other (Relational) database.
Current stable version is 1.0.1.Release, which address many issues with the previous releases and offer support for some new features such as atomic findAndUpdate operation.
To get started, add the following dependency to maven project: