Skip to content

Instantly share code, notes, and snippets.

@luebken
Created November 6, 2014 20:19
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 luebken/195ddeb12a045da93b9f to your computer and use it in GitHub Desktop.
Save luebken/195ddeb12a045da93b9f to your computer and use it in GitHub Desktop.
SparkExample - Hello.java
package sparkexample;
import static spark.Spark.get;
public class Hello {
public static void main(String[] args) {
get("/", (req, res) -> {
return "hello from sparkjava.com";
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment