这里我使用的gredle
2 选择gredle
3 修改build文件,添加vert.x 相关的资源
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 ); } } |
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
原文链接:https://blog.csdn.net/u010355769/article/details/79428700
查看更多关于使用IDEA创建一个vert.x项目的方法的详细内容...