![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vertx
urnotsuperman
买买买
展开
-
vertx web client 接收文件上传file-uploads及删除上传文件
最近在弄一个vertx的小项目,最近的一点小记录。。。vertx post上传文件参数,是需要特殊处理一下的,开始以为用routingContext的getBody就能都获取到,后来翻文档发现这么一句If you want to upload files and send attributes, you can create aMultipartFormand usesendMultipartForm.官方示例MultipartForm form = MultipartForm.crea...原创 2020-11-17 17:42:08 · 1855 阅读 · 0 评论 -
vert.x web client发送http https请求
vert.x web client是一个异步的http客户端,可以很容易的发送异步请求,什么是异步呢?简单举例,同步的http请求,如果服务器没有响应就要一直等着.....异步就是还可以干别的。web client还是很好用的而且提供了很多高级功能。首先引用gradledependencies { compile 'io.vertx:vertx-web-client:3.9.2'}创建一个web client客户端WebClient client = WebClient.create原创 2020-08-27 17:34:09 · 1174 阅读 · 0 评论 -
vert.x笔记之 踩坑记录
最近在用vert.x,版本3.9.0,build.gradle文件pulgins如下plugins { id 'java' id 'application' id 'com.github.johnrengelman.shadow' version '1.2.3' id 'java-gradle-plugin'}com.github.johnrengelman.shadow的版本是按照官方github的demo来的,没多想,而且执行gradle shadowJar原创 2020-08-27 14:20:08 · 749 阅读 · 0 评论