Created
January 29, 2013 05:37
-
-
Save notdol/4662074 to your computer and use it in GitHub Desktop.
vertx:createServer
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
HttpServer server = vertx.createHttpServer(); | |
server.requestHandler(new Handler<HttpServerRequest>() { | |
public void handle(HttpServerRequest request) { | |
request.response.end("Hello Vert.x"); | |
} | |
}); | |
System.out.println("server is running on http://localhost:9090/"); | |
server.listen(9090); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment