使用IDEA创建一个vert.x项目的方法
更新时间:2018年09月12日 09:59:33 作者:xllyll
这篇文章主要介绍了使用IDEA创建一个vert.x项目的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
这里我使用的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); } }
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
最新评论