A Sinatra inspired micro web
framework for quickly creating web applications in Java with minimal effort
News:
Spark 2.0.0 re-written for Java 8 and Lambdas available on Maven central!
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("/hello", (request, response) -> {
return "Hello World!";
});
}
}
Ignite and view at:
http://localhost:4567/hello