Created
October 29, 2016 14:36
-
-
Save Alir3z4/55efc2090be7f6cc5e9962c6a73fddf2 to your computer and use it in GitHub Desktop.
Spark Java Quick Start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static spark.Spark.*; | |
public class HelloWorld { | |
public static void main(String[] args) { | |
get("/hello", (req, res) -> "Hello World"); | |
} | |
} | |
// Fire it up: http://localhost:4567/hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment