Skip to content

Instantly share code, notes, and snippets.

@a-thomas
Created May 12, 2012 19:14
Show Gist options
  • Save a-thomas/2668298 to your computer and use it in GitHub Desktop.
Save a-thomas/2668298 to your computer and use it in GitHub Desktop.
Spark web main
public class Application {
public static void main(String[] args) {
get(new Route(“/”) {
@Override
public Object handle(Request request, //
Response response) {
return “Welcome!”
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment