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
12
votes
2 answers

How to determine programmatically the current active profiles in Quarkus

In the Quarkus Application Configuration Guide it mentions how to configure an app with profiles (eg. %dev.quarkus.http.port=8181). But is there a way to access a Profile (or Environment) API so I can log the active profiles ? For example something…
agoncal
  • 464
  • 4
  • 14
11
votes
4 answers

Can I override quarkus application.properties value in my test class?

I have a value configured in my quarkus application.properties skipvaluecheck=true Now whenever I want to execute my tests, I want to have this value to be set to false instead of true. But I do not want to change in application.properties because…
Sandra
  • 419
  • 7
  • 17
11
votes
4 answers

How can I generate Quarkus rest JX-RS service based on given openapi 3.0.3 yaml file

Currently I am developing an application using quarkus. I have an openapi yaml file that describes everything. I wanted to know if there are quarkus extensions or tool with which I can generate the rest end points that would produce and consume same…
Sandra
  • 419
  • 7
  • 17
11
votes
3 answers

Set Quarkus Logging Category Level via Environment Variables

In Spring, it is possible to set the Logging Category Level via environment variables. I've tried the same in a Quarkus application with the following logger declaration: package org.my.group.resteasyjackson; public class JacksonResource { …
Sincostan
  • 361
  • 2
  • 11
11
votes
1 answer

How to provide swagger annotation for MultipartFormDataInput in RestEasy with Quarkus

while working on Quarkus with the RestEasy framework, I have the functionality to upload a file using MultipartFormDataInput. This functionality is working as expected, but I am unable to provide proper open API annotation for swagger UI. I have…
Sambit
  • 7,625
  • 7
  • 34
  • 65
11
votes
2 answers

How to change the log level during runtime in Quarkus

I am looking for a way to change the log level of one or multiple classes/packages of a Quarkus app (JVM) during runtime. Is there an API I can use to programmatically change the levels, e.g. by exposing a REST API or does there already exist some…
Seb T
  • 795
  • 8
  • 16
11
votes
1 answer

How to set H2 Database console url in the Quarkus Application

As Spring boot application provides a property to set the web console URL of the H2 Database. spring.h2.console.path=/h2 Is there a way to set this same property in the Quarkus application? If not then what is the default web console URL.
Ashu
  • 2,066
  • 3
  • 19
  • 33
11
votes
1 answer

How can I add an http interceptor to a Quarkus application?

I would like to add an HTTP interceptor to my Quarkus application so I can intercept all HTTP requests. How can such that be achieved?
geoand
  • 60,071
  • 24
  • 172
  • 190
10
votes
2 answers

What is the right behavior of evaluatePreconditions on a date with milliseconds according to the specification?

While migrating my JAX-RS application from Jersey to Quarkus/Resteasy, I came across a behavior change with the method evaluatePreconditions(Date lastModified). Indeed, in my use case, the last modified date contains milliseconds and unfortunately…
Nicolas Filotto
  • 43,537
  • 11
  • 94
  • 122
10
votes
1 answer

Quarkus Swagger-UI Authorization

Im currently working with Quarkus and Swagger-UI as delivered by quarkus-smallrye-openapi. We have OIDC from Azure AD as security, which is currently not supported by Swagger-UI (see Swagger-Docs), so I can't add the "real" authorization to…
Urr4
  • 611
  • 9
  • 26
10
votes
5 answers

Integration testing with Testcontainers + Quarkus + MongoDB

Trying out testcontainers for integration testing. I am testing rest api endpoint. Here is the technology stack - quarkus, RESTEasy and mongodb-client I am able to see MongoDB container is started successfully but getting exception. Exception:…
Tushar
  • 263
  • 3
  • 11
10
votes
3 answers

Are composite primary keys in JPA with Quarkus possible?

How to JPA-declare a composite key with Quarkus? Trying to use multiple @Id annotations in an @Entity class with Quarkus, results in the error: Currently the @Id annotation can only be placed on a single field or method. Offending class is…
Min-Soo Pipefeet
  • 2,208
  • 4
  • 12
  • 31
10
votes
2 answers

quarkus: blocked by CORS policy

although I configured the property file I still get the error: blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. I also created a…
icarus
  • 121
  • 1
  • 2
  • 10
10
votes
5 answers

How to mock rest clients when unittesting a Quarkus application?

Quarkus getting started unittest describes how to mock injected services. However when trying to apply this to an injected rest client this does not seem to work. In my application the class attribute to be injected is defined like this @Inject …
misl
  • 301
  • 1
  • 3
  • 8
10
votes
1 answer

How can I log SQL statements in created by my Quarkus application?

I am using Quarkus application with the Hibernate extension and I would like Hibernate to show the generated SQL query. I am not sure how that could be accomplished. What's the best way to accomplish that? What's the proper way to configure such a…
geoand
  • 60,071
  • 24
  • 172
  • 190