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" }

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s