這里我使用的gredle
2 選擇gredle
3 修改build文件,添加vert.x 相關(guān)的資源
4 開始寫代碼了
1
2
3
4
5
6
7
8
9
10
11
|
package com.xllyll.demo.vertx; import io.vertx.core.vertx; public class app { public static void main(string[] args) { // create an http server which simply returns "hello world!" to each request. vertx.vertx().createhttpserver().requesthandler(req -> req.response().end( "hello world!" )).listen( 8080 ); } } |
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持服務(wù)器之家。
原文鏈接:https://blog.csdn.net/u010355769/article/details/79428700