使用IDEA创建一个vert.x项目的方法

这里我使用的Gredle

使用IDEA创建一个vert.x项目的方法

2 选择Gredle

使用IDEA创建一个vert.x项目的方法

使用IDEA创建一个vert.x项目的方法

使用IDEA创建一个vert.x项目的方法

使用IDEA创建一个vert.x项目的方法

3 修改build文件,添加vert.x 相关的资源

使用IDEA创建一个vert.x项目的方法

4 开始写代码了

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);
  } 
}

使用IDEA创建一个vert.x项目的方法

使用IDEA创建一个vert.x项目的方法

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。