Questions tagged [quarkus]

A Kubernetes native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards

Quarkus makes creating cloud-native container-first Java applications a productive and efficient experience.

Combine both the familiar imperative code and the non-blocking reactive style when developing applications.

Quarkus tailors your application for GraalVM and HotSpot. Amazingly fast boot time, incredibly low RSS memory (not just heap size!) offering near instant scale up and high density memory utilization in container orchestration platforms like Kubernetes. We use a technique we call compile time boot.

./my-native-java-rest-app

Quarkus started in 0.008s

A cohesive platform for optimized developer joy:

  • Unified configuration
  • Zero configuration, live reload in the blink of an eye
  • Streamlined code for the 80% common usages, flexible for the 20%
  • No hassle native executable generation

Quarkus brings a cohesive, fun to use full-stack framework by leveraging best of breed libraries you love and use wired on a standard backbone.

Useful links:

3982 questions
8
votes
1 answer

How to consume File with a content type of message/rfc822 in my REST API in a MultipartFormData?

In my Vue App I have this file input: The selected files are passed to my this upload method: public async uploadFiles(file: File) { [...] const formData = new FormData(); …
Tim
  • 3,910
  • 8
  • 45
  • 80
8
votes
1 answer

Reactive hibernate on Quarkus with Flyway

I face a problem when trying to use Quarkus Flyway extension with Quarkus Reactive Hibernate & RESTEasy. When starting my application, I get the following error: [io.qu.ru.Application] (Quarkus Main Thread) Failed to start application (with profile…
Chavjoh
  • 466
  • 5
  • 13
8
votes
1 answer

Dependency injection with @Inject and Interface in Quarkus

I'm trying to resolve dependency injection with Repository Pattern using Quarkus 1.6.1.Final and OpenJDK 11. I want to achieve Inject with Interface and give them some argument(like @Named or @Qualifier ) for specify the concrete class, but…
tkhm
  • 860
  • 2
  • 10
  • 30
8
votes
3 answers

How to select only certain fields with Quarkus Panache?

Quarkus simplifies Hibernate ORM mappings with Panache. Here is an example of my entity and PanacheRepository: @Entity public class Person { @Id @GeneratedValue private Long id; private String firstName; private String lastName; …
ikos23
  • 4,879
  • 10
  • 41
  • 60
8
votes
2 answers

Quarkus datasource with Heroku

I'm trying to deploy my Quarkus-app on Heroku. It works fine, but I needed to specify the datasource-parameters with fix values. Because Heroku might rotate this parameters, this is not a really good idea. In Quarkus, I need this 3 parameters in…
Simon Wick
  • 249
  • 1
  • 11
8
votes
2 answers

How to have dynamic base URL with Quarkus MicroProfile Rest Client?

Quarkus using Rest Client, explains how to use the MicroProfile REST Client. For Base URL application.properties can be used. org.acme.restclient.CountriesService/mp-rest/url=https://restcountries.eu/rest # With above approach, cant have dynamic…
Tushar
  • 263
  • 3
  • 11
8
votes
1 answer

Strange Lombok behaviour with Quarkus and Jackson

at the moment i'm facing a strange issue. I use lombok in my Quarkus project to have getter, setter etc. generated automatically. When i compile Quarkus to a native image, Jackson refuses to serialize a Lombok-Data-Object, but serializes a different…
alexzimmer96
  • 996
  • 6
  • 14
8
votes
2 answers

quarkus resteasy-jackson empty json result for native

Testing quarkus app, with my rest endpoint /init Installed features: [cdi, resteasy, resteasy-jackson] I found that when run app as java (not native), then check http://localhost:8080/init { "user": { "username": "u name", "firstName": "f…
ses
  • 13,174
  • 31
  • 123
  • 226
8
votes
3 answers

Quarkus HTTPS restful service

Is there any example/tutorial to build and configure TLS-secured restful service using quarkus.io? Unfortunately I can not find one neither at quarkus documentation, no here.
S. Kadakov
  • 861
  • 1
  • 6
  • 15
8
votes
1 answer

Error to inject some dependency with kotlin + quarkus

I want to include a dependency in my Kotlin Resource file. But I cant. I made this tutorial: https://quarkus.io/guides/rest-client-guide But, to start the project, I've included extension "kotlin" in my project. My codes below: Country.kt package…
Renan Vaz
  • 305
  • 1
  • 3
  • 8
8
votes
1 answer

How to include classpath resources in a Quarkus native image?

It seems that by default the native image generated by Quarkus does not include any classpath resources corresponding to stuff from src/main/resources/. From the GraalVM docs, I sort of understand why this happens, but now I'm stuck. Is there a way…
Harald Wellmann
  • 12,615
  • 4
  • 41
  • 63
7
votes
3 answers

Why I see a blank page for the Keycloak's administration console?

I'm using a Dockerfile for create a custom image of Keycloak as follows: FROM quay.io/keycloak/keycloak:18.0.2 as builder ENV KC_HEALTH_ENABLED=true ENV KC_METRICS_ENABLED=true ENV KC_DB=postgres # Install custom providers RUN curl -sL…
Kambei
  • 458
  • 9
  • 23
7
votes
2 answers

How to run a single test with Quarkus live reload

Our test suite takes 5 minutes to run (mostly due to Kafka containers being setup before each test I presume). When running mvn quarkus:dev and working on a test, I don't know how to re-run only a single test, the one I'm working on. If my test is…
lud
  • 1,941
  • 20
  • 35
7
votes
1 answer

quarkus.hibernate-orm.log.bind-parameters - don't work

I migrated from Quarkus version 1.10.5.Final to 1.13.3.Final and the quarkus.hibernate-orm.log.bind-parameters=true property stopped working. When the application starts I receive the following warning: WARN [io.qua.run.log.LoggingSetupRecorder]…
Felipe Windmoller
  • 1,528
  • 1
  • 12
  • 24
7
votes
1 answer

Define client target URL at runtime using Quarkus & Resteasy

I need to send HTTP requests from my Quarkus application. Following this guide, I have this RestClient: @Path("/v1") @RegisterRestClient public interface CountriesService { @GET @Path("/name/{name}") Set getByName(@PathParam…
Eria
  • 2,653
  • 6
  • 29
  • 56