A Sinatra inspired micro web
framework for quickly creating web applications in Java with minimal effort
Quick start
Download the spark lib and its dependencies (Or just add as maven dependency). Put in your classpath and you're ready to go.
import static spark.Spark.*;
import spark.*;
public class HelloWorld {
public static void main(String[] args) {
get(new Route("/hello") {
@Override
public Object handle(Request request, Response response) {
return "Hello World!";
}
});
}
}
Ignite and view at:
http://localhost:4567/hello