这里我使用的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);
}
}


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
继续阅读与本文标签相同的文章
-
Cassandra JAVA客户端是如何做到高性能高并发的
2026-05-17栏目: 教程
-
阿里云ECS服务器CentOS7.3中的Nginx简单安装部署实现小经验
2026-05-17栏目: 教程
-
Kong01- Kong 介绍
2026-05-17栏目: 教程
-
Kong02-KongA 介绍
2026-05-17栏目: 教程
-
Kong03-Nginx、OpenResty、Kong 的基本概念和区别联系
2026-05-17栏目: 教程
