Last active
September 23, 2018 22:43
-
-
Save birdayz/2a6692f208bfc8be9360689d9d9d14d5 to your computer and use it in GitHub Desktop.
Javalin Hello World
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Test t = new Test(); | |
t.setSomeValue("Hello World!"); | |
Javalin app = Javalin.create().start(7000); | |
app.get("/", ctx -> ctx.json(t)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment