创建页面,内容为“= Get started = == Install CLI== <syntaxhighlight lang="bash"> curl -Ls https://sh.jbang.dev | bash -s - trust add https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/ curl -Ls https://sh.jbang.dev | bash -s - app install --fresh --force quarkus@quarkusio </syntaxhighlight> == Hello world == <syntaxhighlight lang="cpp"> quarkus create && cd code-with-quarkus </syntaxhighlight> <syntaxhighlight lang="cpp"> $ quarkus dev ... [INFO] Compiling 2 source files…” |
小无编辑摘要 |
||
第1行: | 第1行: | ||
= Why Quarkus= | |||
Quarkus is defined as a “Kubernetes Native Java stack tailored for OpenJDK | |||
HotSpot and GraalVM, crafted from the best of breed Java libraries and standards” | |||
== A Kubernetes native stack == | |||
Targeting Kubernetes as the target deployment platform, designed for containers as the main packaging format utilized in the cloud and by providing a toolset that allows you to build and deploy containers in a single step. Additionally, Quarkus supports a | |||
series of features that promote integration with the cloud platforms (e.g., exposing | |||
health-related information, external configuration options, etc.), which are integral | |||
to a positive user experience in the cloud environment | |||
= Get started = | = Get started = | ||
== Install CLI== | == Install CLI== |
2025年8月13日 (三) 16:29的版本
Why Quarkus
Quarkus is defined as a “Kubernetes Native Java stack tailored for OpenJDK HotSpot and GraalVM, crafted from the best of breed Java libraries and standards”
A Kubernetes native stack
Targeting Kubernetes as the target deployment platform, designed for containers as the main packaging format utilized in the cloud and by providing a toolset that allows you to build and deploy containers in a single step. Additionally, Quarkus supports a series of features that promote integration with the cloud platforms (e.g., exposing health-related information, external configuration options, etc.), which are integral to a positive user experience in the cloud environment
Get started
Install CLI
curl -Ls https://sh.jbang.dev | bash -s - trust add https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/
curl -Ls https://sh.jbang.dev | bash -s - app install --fresh --force quarkus@quarkusio
Hello world
quarkus create && cd code-with-quarkus
$ quarkus dev
...
[INFO] Compiling 2 source files with javac [debug parameters release 21] to target/test-classes
Listening for transport dt_socket at address: 5005
__ ____ __ _____ ___ __ ____ ______
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2025-08-14 00:14:31,380 INFO [io.quarkus] (Quarkus Main Thread) code-with-quarkus 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.25.2) started in 2.921s. Listening on: http://localhost:8080
2025-08-14 00:14:31,386 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2025-08-14 00:14:31,387 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, rest, smallrye-context-propagation, vertx]
--
Tests paused
Press [e] to edit command line args (currently ''), [r] to resume testing, [o] Toggle test output, [:] for the terminal, [h] for more options>