Javalin
Developer(s) | David Åse |
---|---|
Initial release | 5 November 2017 |
Stable release | 2.6.0
/ 17 January 2019 |
Written in | Kotlin |
Engine | |
Operating system | Cross-platform (Java Virtual Machine) |
Type | Web application framework |
License | Apache License 2.0 |
Website | javalin |
Search Javalin on Amazon.
Javalin is a free and open-source software web application framework that started as a fork of the web framework Spark[1]. Like Spark, Javalin is inspired by Sinatra, and follows a purely programmatic approach to building web-applications: "You don't need to extend anything, there are no @Annotations, no reflection, no other magic; just code" [2]. As of version 2.6, the framework supports most modern features, such as HTTP2, WebSockets, asynchronous requests and server-sent events[3][4].
Hello World Example[edit]
import io.javalin.Javalin
fun main(args: Array<String>) {
val app = Javalin.create().start(7000)
app.get("/") { ctx -> ctx.result("Hello World") }
}
External links[edit]
References[edit]
- ↑ "Javalin — a very lightweight web framework for both Kotlin and Java developers". JAXenter. 2017-11-08. Retrieved 2019-02-17.
- ↑ "Lightweight Javalin Framework Already Moving Past Milestone -". ADTmag. Retrieved 2019-02-17.
- ↑ Krill, Paul (2018-08-24). "Javalin 2.0 supports WebJars web libraries, JSON modularization". InfoWorld. Retrieved 2019-02-17.
- ↑ "What's new in Javalin 2.6: Server-side events, app extensions, and more!". JAXenter. 2019-01-21. Retrieved 2019-02-17.
This article "Javalin" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Javalin. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.