Created
May 12, 2022 09:39
-
-
Save yazinnnn/47636b5513c1cb10ccb2d455eb29a69e to your computer and use it in GitHub Desktop.
simple quarkus app
This file contains 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
@QuarkusMain | |
@ApplicationScoped | |
public class App implements QuarkusApplication { | |
private final Vertx vertx; | |
public App(Vertx vertx) { | |
this.vertx = vertx; | |
} | |
@Override | |
public int run(String... args) { | |
vertx.createHttpServer() | |
.requestHandler(request -> request.response().endAndForget("hello from graalvm")) | |
.listenAndForget(5000); | |
Quarkus.waitForExit(); | |
return 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment