quarkus

How can I override properties in Quarkus?

喜欢而已 提交于 2020-08-07 08:14:47
问题 I would like to override the properties I have configured in my configuration file in my Quarkus application. How can I accomplish that? 回答1: Properties in Quarkus are generally configured in src/main/resources/application.properties . This is true both for properties that configure the behavior of Quarkus (like the http port it listens to or the database URL to connect to for example) and properties that are specific to your application (for example a greeting.message property). The

How do I set the logging level in Quarkus?

穿精又带淫゛_ 提交于 2020-07-07 14:08:56
问题 I would like to change the logging level of my Quarkus application. How can I do that either from the configuration file or at runtime? 回答1: The property that controls the root logging level is quarkus.log.level (and defaults to INFO ). This property can be set either in application.properties or can be overridden at runtime using -Dquarkus.log.level=DEBUG . You can also specify more fine grained logging using quarkus.log.category . For example for RESTEasy you could set: quarkus.log.category

Quarkus - Error sending form data with date field

醉酒当歌 提交于 2020-06-29 04:22:09
问题 I'm using Quarkus version 1.5.1, however when trying to send data of type LocalDate (or Date) of a form, it returns the following error message: java.lang.RuntimeException: RESTEASY007545: Unable to find a MessageBodyReader for media type: text / plain; charset = us-ascii and class type java.time.LocalDate I have already imported the following dependencies, but the error persists. <dependency> <groupId> io.quarkus </groupId> <artifactId> quarkus-resteasy </artifactId> </dependency>

Using Jedis pool in JAX-RS app running in Quarkus native results in ClassNotFoundException: org.apache.commons.pool2.impl.DefaultEvictionPolicy

落爺英雄遲暮 提交于 2020-06-28 03:54:28
问题 I'm trying to use JedisPool in application run in Quarkus native mode (works fine in JVM mode). I've already disabled JMX feature of the pool, which is not avaliable in native mode, like this: JedisPoolConfig jedisConfiguration = new JedisPoolConfig(); jedisConfiguration.setJmxEnabled(false); jedisPool = new JedisPool(jedisConfiguration, jedisURI); However I'm hitting following error: 2020-04-29 17:35:37,724 INFO [test.StockQuote] (main) java.lang.IllegalArgumentException: Unable to create

Why in multiple connections to PricesResource Publisher, only one gets the stream?

核能气质少年 提交于 2020-06-17 09:33:10
问题 It seems that only one http client gets the stream of data, while the others do not. Is it true that the Publisher is hot data, and that it should broadcast to all subscribers? Please find more in Can I allow multiple http clients to consume a Flowable stream of data with resteasy-rxjava2 / quarkus? package org.acme.kafka; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import io.reactivex.Flowable;

Is Quarkus optimized for docker container runtime or it is just for Kubernetes

怎甘沉沦 提交于 2020-06-01 03:08:28
问题 As described at Quarkus website that it is "Kubernetes native Java framework". Does that means it cannot be used for other Docker Orchestration platforms like DockerSwarm ? or it is just only optimized for K8S ? Regards. 回答1: Once you build a docker image, nothing stops you for using it with the container orchestration platform of your choice such as Docker Swarm. 来源: https://stackoverflow.com/questions/58154184/is-quarkus-optimized-for-docker-container-runtime-or-it-is-just-for-kubernetes

Is Quarkus optimized for docker container runtime or it is just for Kubernetes

混江龙づ霸主 提交于 2020-06-01 03:06:22
问题 As described at Quarkus website that it is "Kubernetes native Java framework". Does that means it cannot be used for other Docker Orchestration platforms like DockerSwarm ? or it is just only optimized for K8S ? Regards. 回答1: Once you build a docker image, nothing stops you for using it with the container orchestration platform of your choice such as Docker Swarm. 来源: https://stackoverflow.com/questions/58154184/is-quarkus-optimized-for-docker-container-runtime-or-it-is-just-for-kubernetes

Can I allow multiple http clients to consume a Flowable stream of data with resteasy-rxjava2 / quarkus?

大城市里の小女人 提交于 2020-05-30 09:49:20
问题 Currently I am able to see the streaming values exposed by the code below, but only one http client will receive the continuous stream of values, the others will not be able to. The code, a modified version of the quarkus quickstart for kafka reactive streaming is: @Path("/migrations") public class StreamingResource { private volatile Map<String, String> counterBySystemDate = new ConcurrentHashMap<>(); @Inject @Channel("migrations") Flowable<String> counters; @GET @Path("/stream") @Produces

Can I allow multiple http clients to consume a Flowable stream of data with resteasy-rxjava2 / quarkus?

丶灬走出姿态 提交于 2020-05-30 09:48:38
问题 Currently I am able to see the streaming values exposed by the code below, but only one http client will receive the continuous stream of values, the others will not be able to. The code, a modified version of the quarkus quickstart for kafka reactive streaming is: @Path("/migrations") public class StreamingResource { private volatile Map<String, String> counterBySystemDate = new ConcurrentHashMap<>(); @Inject @Channel("migrations") Flowable<String> counters; @GET @Path("/stream") @Produces

Cannot run @QuarkusTest annotated unit tests with IntelliJ IDEA

爷,独闯天下 提交于 2020-05-29 06:59:28
问题 I cannot run @QuarkusTest annotated unit tests with IntelliJ IDEA. I get the following error: org.junit.jupiter.api.extension.TestInstantiationException: TestInstanceFactory [io.quarkus.test.junit.QuarkusTestExtension] failed to instantiate test class [coza.ipcm.api.mailer.control.MailerServiceTest]: io/quarkus/security/spi/AdditionalSecuredClassesBuildIem at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstanceFactory(ClassBasedTestDescriptor.java:300) at org.junit