Created
November 8, 2013 05:06
-
-
Save taywils/7366522 to your computer and use it in GitHub Desktop.
spark_demo_step_2 HelloSpark.java
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.*; | |
import spark.*; | |
public class HelloSpark { | |
public static void main(String[] args) { | |
get(new Route("/hello") { | |
@Override | |
public Object handle(Request request, Response response) { | |
return "Hello Spark MVC Framework!"; | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment