1 Star 0 Fork 2

githubsync/vertx-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.adoc 793 Bytes
一键复制 编辑 原始数据 按行查看 历史
Julien Viet 提交于 2022-05-24 16:38 +08:00 . 4.3.1 upgrade

Fatjar examples

Here you will find examples showing Vert.x fatjar in action.

HTTP/2 fatjar

An HTTP/2 server fatjar using Boring SSL engine and embedding the server key/certificates in pem format.

The pom.xml uses the Maven shade plugin to assemble the application and all it’s dependencies into a single "fat" jar.

To build with Maven

mvn package

To run the fat jar:

java -jar target/http2-fatjar-4.3.1.jar

The build.gradle uses the Gradle shadowJar plugin to assemble the application and all it’s dependencies into a single "fat" jar.

To build with Gradle

./gradlew shadowJar

To run the fat jar:

java -jar build/libs/http2-fatjar-4.3.1-all.jar
Note
embedding the key in the jar is a discouraged practice - it is done purposely to keep the example simple
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/githubsync/vertx-examples.git
git@gitee.com:githubsync/vertx-examples.git
githubsync
vertx-examples
vertx-examples
4.x

搜索帮助