Rest with Vert.x for java
Rest with Scala and Vert.x
支援restful java with vert.x的程式碼如下:
支援restful java with vert.x的程式碼如下:
public class SampleResticle extends Verticle { public void start() { HttpServer server = vertx.createHttpServer(); RouteMatcher routeMatcher = new RouteMatcher(); routeMatcher.get("/hello", new Handler<HttpServerRequest>() { public void handle(HttpServerRequest req) { req.response.statusCode =200; req.response.end("world"); } }); server.requestHandler(routeMatcher).listen(8080, "localhost"); } } <p class="indent"> |
相關文章
- Vert.x 示例
- Elasticsearch Java REST Client(目錄)ElasticsearchJavaRESTclient
- REST 在 Java 中的使用RESTJava
- Vert.x的介紹!這是目前最快的Java框架Java框架
- Vert.x 使用RedisRedis
- Java操作Elasticsearch 之 [Java High Level REST Clientedit]JavaElasticsearchRESTclient
- Vert.X CompositeFuture 用法
- Vert.x MySQLClient體驗MySqlclient
- Vert.x Kotlin 協程Kotlin
- Vert.x 傳送郵件
- Vert.x 叢集配置 TCPTCP
- Elasticsearch Java Low Level REST Client(初始化)ElasticsearchJavaRESTclient
- Elasticsearch Java High Level REST Client(入門)ElasticsearchJavaRESTclient
- Elasticsearch Java High Level REST Client(Delete API)ElasticsearchJavaRESTclientdeleteAPI
- Elasticsearch Java High Level REST Client(Exists API)ElasticsearchJavaRESTclientAPI
- 【Rest】PUT Vs Post in RestREST
- Vert.x原始碼分析之Launcher原始碼
- 瞭解Vert.x:事件迴圈事件
- Vert.x 檔案上傳Clientclient
- Vert.x TCP 通訊實踐TCP
- REST is not enabled. use -rest to turn onREST
- Elasticsearch Java Low Level REST Client(執行請求)ElasticsearchJavaRESTclient
- Dropwizard Java REST框架釋出1.0.0版本JavaREST框架
- Jenkins 常用 REST API介紹(Java 客戶端)JenkinsRESTAPIJava客戶端
- 使用uwolfer gerrit-rest-java-client獲取Gerrit資訊RESTJavaclient
- 在Vert.x中使用SQL - Alexey SoshinSQL
- Vert.x 程式碼結構最佳實踐
- Vert.x Future 解決複雜查詢
- REST APIsRESTAPI
- rest apiRESTAPI
- The REST ObjectionRESTObject
- REST真相REST
- SpringBoot:Java High Level REST Client 搜尋 APISpring BootJavaRESTclientAPI
- 用Java構建反應式REST API - Kalpa SenanayakeJavaRESTAPINaN
- Rest Post示例(java服務端、python客戶端)RESTJava服務端Python客戶端
- 到底什麼樣的 REST 才是最佳 REST?REST
- SOA之(5)——REST的SOA(SOA with REST)概念REST
- Vert.x IM聊天系統設計實現