Skip to content

Instantly share code, notes, and snippets.

@isicju
Created October 27, 2017 20:55
Show Gist options
  • Save isicju/e1cdb2ad8fa381958856e48f1e5b81a7 to your computer and use it in GitHub Desktop.
Save isicju/e1cdb2ad8fa381958856e48f1e5b81a7 to your computer and use it in GitHub Desktop.
package sparkexample;
import spark.Spark;
import static spark.Spark.get;
public class Hello {
public static void main(String[] args) {
Spark.staticFileLocation("/public");
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