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;
That would work in Spark 1. In Spark 2 is recommended by Spark the following (source: http://sparkjava.com/news.html):
import static spark.Spark.*; public class HelloWorld { public static void main(String[] args) { get("/", (req, res) -> "Hello World From Spark"); } }