Created
February 27, 2013 22:52
-
-
Save marti1125/5052605 to your computer and use it in GitHub Desktop.
spark
This file contains hidden or 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 spark; | |
import spark.*; | |
public class Spark { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
// TODO code application logic here | |
Spark.get(new Route("/hello") { | |
@Override | |
public Object handle(final Request request, final Response response) { | |
return "Hello World!"; | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment