I\'m designing a Java based MongoDB app and I\'ve ran into a snag when working with Spark.
package com.tengen;
import spark.Request;
import spark.Response;
Actually I used spark-core-1.1.1.jar it worked fine for me, may be the newer versions of Spark(version 2.0.0) support some different syntax.So if you are using the latest version then you can follow the example given by Mike or just add spark-core-1.1.1.jar to your classpath your example will work fine