Skip to content

Instantly share code, notes, and snippets.

@adam-zacharski
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-zacharski/909b0ec4b400aab6bbfb to your computer and use it in GitHub Desktop.
Save adam-zacharski/909b0ec4b400aab6bbfb to your computer and use it in GitHub Desktop.
Spark Hello World
import static spark.Spark.*;
public class HelloWorld {
public static void main(String[] args) {
get("/hello", (req, res) -> "Hello World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment