欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2024-02-24 23:15:34
这里我使用的gredle 2 选择gredle 3 修改build文件,添加vert.x 相关的资源 4 开始写代...

这里我使用的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项目的方法

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