This commit is contained in:
2026-04-10 13:48:30 +03:00
parent e73d5582b0
commit a8a2239d37
12 changed files with 638 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package com.example.starter;
import io.vertx.core.Future;
import io.vertx.core.VerticleBase;
public class MainVerticle extends VerticleBase {
@Override
public Future<?> start() {
return vertx.createHttpServer().requestHandler(req -> {
req.response()
.putHeader("content-type", "text/plain")
.end("Hello from Vert.x!");
}).listen(8888).onSuccess(http -> {
System.out.println("HTTP server started on port 8888");
});
}
}