Skip to content

Instantly share code, notes, and snippets.

@marti1125
Created February 27, 2013 22:52
Show Gist options
  • Save marti1125/5052605 to your computer and use it in GitHub Desktop.
Save marti1125/5052605 to your computer and use it in GitHub Desktop.
spark
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