Created
October 27, 2017 20:55
-
-
Save isicju/e1cdb2ad8fa381958856e48f1e5b81a7 to your computer and use it in GitHub Desktop.
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
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