Edge Rewrite
// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a25ed3e43939231f

Jump to content

Draft:Javalin

From Wikipedia, the free encyclopedia

Javalin
DeveloperDavid Åse
Release5 November 2017; 8 years ago (2017-11-05)
Stable release
2.6.0 / 17 January 2019; 7 years ago (2019-01-17)
Written inKotlin
Operating systemCross-platform (Java Virtual Machine)
TypeWeb application framework
LicenseApache License 2.0
Websitejavalin.io

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") }
}

References

[edit]
  1. "Javalin — a very lightweight web framework for both Kotlin and Java developers". JAXenter. 2017-11-08. Retrieved 2019-02-17.
  2. "Lightweight Javalin Framework Already Moving Past Milestone -". ADTmag. Retrieved 2019-02-17.
  3. Krill, Paul (2018-08-24). "Javalin 2.0 supports WebJars web libraries, JSON modularization". InfoWorld. Retrieved 2019-02-17.
  4. "What's new in Javalin 2.6: Server-side events, app extensions, and more!". JAXenter. 2019-01-21. Retrieved 2019-02-17.
[edit]

Category:Free software Category:Java platform software Category:Web frameworks