第17行: | 第17行: | ||
== libraries and standards== | == libraries and standards== | ||
Quarkus uses standards like MicroProfile (https://microprofile.io) and Jakarta EE | |||
(Enterprise Edition; https://jakarta.ee) and popular open source frameworks such as | (Enterprise Edition; https://jakarta.ee) and popular open source frameworks such as | ||
Hibernate (https://hibernate.org), Vertx (https://vertx.io), Apache Camel (https:// | Hibernate (https://hibernate.org), Vertx (https://vertx.io), Apache Camel (https:// |
2025年8月13日 (三) 16:35的版本
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
OpenJDK HotSpot and GraalVM
GraalVM compiler and the native image compilation, which are the main parts of GraalVM that Quarkus utilizes. Native compilation allows users to build a standalone binary executable that runs without requiring a JVM.
libraries and standards
Quarkus uses standards like MicroProfile (https://microprofile.io) and Jakarta EE (Enterprise Edition; https://jakarta.ee) and popular open source frameworks such as Hibernate (https://hibernate.org), Vertx (https://vertx.io), Apache Camel (https:// camel.apache.org), or RESTEasy (https://resteasy.dev). This allows developers to reuse their expertise and years of practice with these libraries when they start working with Quarkus
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>