加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.adoc 793 Bytes
一键复制 编辑 原始数据 按行查看 历史
Julien Viet 提交于 2021-07-20 15:11 . Update to Vert.x 4.1.2

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.1.2.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.1.2-all.jar
Note
embedding the key in the jar is a discouraged practice - it is done purposely to keep the example simple
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化