Learn QUARKUS with Real Code Examples
Updated Nov 25, 2025
Installation Setup
Install Java 17+
Set up Maven or Gradle build system
Generate project via Quarkus CLI (`quarkus create`) or code.quarkus.io
Run development server with `./mvnw quarkus:dev`
Build native image with `./mvnw package -Pnative`
Environment Setup
Install Java 17+
Install Maven or Gradle
Install Quarkus CLI (optional)
Verify GraalVM for native builds
Run dev server and verify endpoints
Config Files
pom.xml / build.gradle - build configuration
application.properties / application.yaml - configuration
src/main/java - Java source code
src/main/resources - static and config files
src/test/java - test cases
Cli Commands
mvn io.quarkus:quarkus-maven-plugin:create -> create project
./mvnw quarkus:dev -> run dev server
./mvnw package -Pnative -> build native image
mvn test -> run tests
docker build -> containerize application
Internationalization
Use third-party libraries for i18n
Supports UTF-8
Serve locale-specific content
Integrates with message bundles
Suitable for multi-language applications
Accessibility
Supports CORS
Accessible via HTTP clients
Works on all JVM platforms
Middleware/extensions handle security headers
Cloud-native friendly
Ui Styling
Backend-only framework
Serve JSON APIs
Optionally serve static content
Integrate with SPA frontends
No native template engine, but supports Qute
State Management
Stateless REST services by default
Persistent state via DB or cache
Background tasks via reactive/event-driven streams
Session management with JWT/OAuth2
Clustered state via cloud platforms
Data Management
Map requests/responses with JSON-B or Jackson
Validate data via Bean Validation (Hibernate Validator)
Integrate with SQL/NoSQL databases
Cache frequently accessed data
Log requests/responses for observability