A Quarkus-based Java application demonstrating validation features and REST API development.
src/main/java/- Contains Java source codesrc/main/resources/- Contains configuration files and templatessrc/main/docker/- Docker-related filespom.xml- Maven project configurationmvnwandmvnw.cmd- Maven wrapper scripts for Unix and Windows respectively
The project uses:
- Quarkus 3.21.4
- REST Jackson for JSON serialization
- Qute Web for template rendering
- Hibernate Validator for validation
- JUnit 5 for testing
-
Prerequisites
- Java 17 or later
- Maven (or use the provided Maven wrapper)
-
Development Mode
./mvnw quarkus:dev
This starts the application in development mode with live reloading.
-
Build and Run
./mvnw package java -jar target/quarkus-app/quarkus-run.jar
-
Build Native Executable
./mvnw package -Dnative
Or using container build:
./mvnw package -Dnative -Dquarkus.native.container-build=true
- REST API endpoints with JSON serialization
- Template-based web pages using Qute
- Input validation using Hibernate Validator
- Development mode with hot reload
- Native executable support
- The application runs on
http://localhost:8080/registration - Development UI is available at
http://localhost:8080/q/dev/ - Qute templates are served from
src/main/resources/templates/
Run tests using:
./mvnw test