![](https://img-blog.csdnimg.cn/20190927102446509.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Vert.x
风铃峰顶
个人项目经历请搜索:
http://www.haoranhaoshi.top/
展开
-
ERROR StatusLogger No Log4j 2 configuration file found.
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging..原创 2020-10-12 09:43:16 · 253 阅读 · 0 评论 -
Vert.x :Thread Thread[worker-pool-0,5,main] has been blocked for 129 ms, time limit is 0 ms
10月 12, 2020 9:29:51 上午 io.vertx.core.impl.BlockedThreadChecker警告: Thread Thread[worker-pool-0,5,main] has been blocked for 129 ms, time limit is 0 ms注意:创建线程池时时间单位默认纳秒。 /** * Like {@link #createSharedWorkerExecutor(String, int, long, TimeUnit)}..原创 2020-10-12 09:32:41 · 1345 阅读 · 0 评论 -
Vert.x 实现TCP长连接,控制台可测试
客户端可以在控制台中向服务端发送消息。package VertxTCPConsoleTest;import io.vertx.core.AbstractVerticle;import io.vertx.core.Vertx;import io.vertx.core.buffer.Buffer;import io.vertx.core.net.NetServer;public c...原创 2019-07-28 09:53:30 · 1769 阅读 · 0 评论 -
Java TCP实验:Vert.x服务端 + Socket客户端
Java TCP实验:Vert.x服务端 + Socket客户端Socket客户端可实现Vert.x TCP客户端没有的同步阻塞。import io.vertx.core.AbstractVerticle;import io.vertx.core.Vertx;import io.vertx.core.buffer.Buffer;import io.vertx.core.net.Ne...原创 2019-07-25 18:28:46 · 1387 阅读 · 0 评论 -
Vertx(Java版)Http的Get、Post请求(含有参数)及响应
应用场景在应用系统中,经常会有类似于获取天气、发送短信、处理图像、支付等需求,这些需求实现都非常复杂,或者受到监管的限制,不是任何一个公司都可以做到的。但有些应用为了提升用户的体验,需要用到这些功能,比如饿了么会根据你所在的位置推荐附近的商家,在线商城需要在线支付,还有一些应用需要进行人脸识别等等。Web客户端应用场景有需求就会有市场,于是就有很多的公司单独对外提供某种服务,比如支付宝...转载 2019-07-08 20:48:38 · 4930 阅读 · 0 评论 -
Insufficient space for shared memory file: Failed to create cache dir
Java HotSpot(TM) 64-Bit Server VM warning: Insufficient space for shared memory file: 21636Try using the -Djava.io.tmpdir= option to select an alternate temp location.Exception in thread "main" ...原创 2019-06-17 22:14:12 · 1591 阅读 · 0 评论 -
Vert.x 一端得到完整的buffer
// 这里的buffer是截断传输的,默认buffer达1024就传递一次,如果超过1024,就会多次调用内容。这个缓存区大小可以在NetServerOptions中设置。socket.handler(buffer -> {操作内容});一端进行一次socket.write(buffer)操作,如果buffer大于设置的缓存区大小,就会截断传输,如果不是处理后断开连接,可以给出一个...原创 2019-06-11 18:47:09 · 695 阅读 · 0 评论 -
Thread vertx-eventloop-thread-3 has been blocked for 20458 ms
快速解决:WorkerExecutor executor = vertx.createSharedWorkerExecutor("my-worker-pool");executor.executeBlocking(future -> { // 调用一些需要耗费显著执行时间返回结果的阻塞式API String result = someAPI.blockingMethod("h...原创 2019-06-03 16:44:15 · 2646 阅读 · 5 评论 -
Vert.x 使用Http 发布数据时的编码和解码
在Java中看,编码是String转Stream,解码是Stream转String。router.get("/" + urlName).handler(event -> event.response().putHeader("content-type", "text/html").end(result));浏览器中文乱码,使用URLConnection解析结果时使用默认解码是识别中...原创 2019-05-20 18:40:58 · 1641 阅读 · 0 评论 -
Vert.x的TCP服务端和客户端配置
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-14 15:30:40 · 1296 阅读 · 0 评论 -
Vert.x实战七:TCP设置超时断开
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-14 15:28:43 · 2234 阅读 · 0 评论 -
Vert.x实战六:TCP客户端之间以功能名通过服务端转接通信
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-14 15:20:30 · 545 阅读 · 1 评论 -
Vert.x实战五:TCP客户端之间以ID通过服务端转接通信
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-14 15:14:26 · 538 阅读 · 0 评论 -
Vert.x实战四:TCP客户端之间以角色和同一角色连接顺序通过服务端转接通信
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-14 15:11:40 · 425 阅读 · 0 评论 -
Vert.x实战三:TCP客户端之间以角色通过服务端转接通信
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-14 15:04:39 · 354 阅读 · 1 评论 -
Vert.x实战二:TCP通信
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-14 15:00:18 · 1733 阅读 · 0 评论 -
Vert.x实战一:Vert.x通过Http发布数据(或文件)
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-13 16:39:16 · 892 阅读 · 0 评论 -
Vert.x介绍
Vert.x系列:Vert.x介绍:https://blog.csdn.net/haoranhaoshi/article/details/89279096Vert.x实战一:Vert.x通过Http发布数据:https://blog.csdn.net/haoranhaoshi/article/details/89284847Vert.x实战二:TCP通信:https://blog.csdn....原创 2019-04-13 10:49:09 · 844 阅读 · 0 评论