Using Spring Data with MongoDB: Setting Up the Environment

We need to download and install the following software for this chapter.

  • Eclipse IDE for Java EE Developers. Download from www.eclipse.org/downloads.

Eclipse 4.4 Luna used in this chapter.

  • MongoDB 3.0.5 (or later version) binary distribution from www.mongodb.org/ downloads .
  • Java SE 7 www.from oracle.com/technetwork/java/javase/downloads/jdk7-downloads-l880260.html.

Double-click on the MongoDB binary distribution to install MongoDB. Add the bin directory (C:\Program Files\MongoDB\Server\3.0\bin) of the MongoDB installation to the PATH environment. Create a directory C:\data\db for the MongoDB data if not already created for an earlier chapter.

Start the MongoDB server with the following command.

>mongod

Source: Vohra Deepak (2015), Pro MongoDB™ Development, Apress; 1st ed. edition.

Leave a Reply

Your email address will not be published. Required fields are marked *