Skip to content

Instantly share code, notes, and snippets.

@yazinnnn
Created May 12, 2022 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yazinnnn/47636b5513c1cb10ccb2d455eb29a69e to your computer and use it in GitHub Desktop.
Save yazinnnn/47636b5513c1cb10ccb2d455eb29a69e to your computer and use it in GitHub Desktop.
simple quarkus app
@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