Fork me on GitHub
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

Add the Spark maven dependency and you're ready to go:
            
import static spark.Spark.*;

public class HelloWorld {
   public static void main(String[] args) {
   
      get("/hello", (req, res) -> "Hello World");
   
   }
}

Ignite and view at:

http://localhost:4567/hello