Month: January 2014

Application using MongoDB with FreeMarker and Spark

Posted on Updated on

We will use the FreeMarker template engine to create the template mappings. Also, to keep the web application simple using Java code alone, Spark Web Application Framework is used.

Source (Git)

MongoDB Java Application

MongoDB Java Application 2

Querying the Mongodb and checking the value (mongo) which has been displayed using the Java application created.

> db.hello.findOne()

{ "_id" : ObjectId("52ce3490c85b1177b58ec638"), "name" : "mongo" }