You can edit almost every page by Creating an account. Otherwise, see the FAQ.

Spark (software)

From EverybodyWiki Bios & Wiki


Spark
The Spark Java logo
Original author(s)Per Wendel
Initial release2011; 13 years ago (2011)
RepositorySpark Repository
Written inJava
Engine
    Operating systemCross-platform (Java Virtual Machine)
    TypeWeb application framework
    LicenseApache License 2.0
    Websitesparkjava.com

    Search Spark (software) on Amazon.

    Spark is a free and open-source software web application framework and domain-specific language written in Java. It is an alternative to other Java web application frameworks such as JAX-RS, Play framework and Spring MVC. It runs on an embedded Jetty web server by default, but can be configured to run on other webservers.

    Inspired by Sinatra,[citation needed] it does not follow the model–view–controller pattern used in other frameworks, such as Spring MVC. Instead, Spark is intended for "quickly creating web-applications in Java with minimal effort."[1]

    Spark was created and open-sourced in 2011 by Per Wendel, and was completely rewritten for version 2 in 2014. The rewrite was hugely centered on the Java 8 lambda philosophy, so Java 7 is officially not supported in version 2 and above.

    Example (Hello World)[edit]

    import static spark.Spark.*;
    
    public class HelloWorld {
       public static void main(String[] args) {
          get("/hello", (request, response) -> "Hello World!");
       }
    }
    

    Supported template engines[edit]

    Spark supports these template engines:[2]

    References[edit]

    External links[edit]


    This article "Spark (software)" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Spark (software). Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.