首页 > 编程 > Java > 正文

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

2019-11-26 09:39:34
字体:
来源:转载
供稿:网友

这里我使用的Gredle


2 选择Gredle





3 修改build文件,添加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);  } }



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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表