quarkus

Quarkus框架入门之一:Quarkus框架介绍及简单示例

元气小坏坏 提交于 2020-03-13 00:34:54
开篇 最近几年,Spring全家桶横扫其它Java框架,已然成为事实标准,单体应用使用Spring Framework+Spring Boot,服务治理Spring Cloud,生态完善,各种组件层出不穷。曾经还玩过JFinal和Nutz等国内的开发框架,但是仅仅是私下玩玩,实际工作过程中,还是Spring的天下,很少会选择其它小众的框架(谁知道会不会有填不完的大坑)。 最近在社区闲逛的时候,发现一个Red Hat开源的Java框架Quarkus,定位为GraalVM和OpenJDK HotSpot量身定制的一个Kurbernetes Native Java框架。虽然开源时间较短,但是生态方面也已经达到可用的状态,自身包含扩展框架,已经支持像Netty、Undertow、Hibernate、JWT等框架,足以用于开发企业级应用,用户也可以基于扩展框架自行扩展。 术语简介 **Cloud Native Application:**即云原生应用,是由 Pivotal 的Matt Stine在2013年提出的,个人认为所谓云原生应用也是SAAS服务的一种,针对近年来云计算平台的发展,SAAS服务进一步发展的产物。 **Graalvm:**Oracle在2018年开源的一个通用型虚拟机,可以用来构建多语言应用,也可以简单地用来编译和构建Java应用,甚至可以将Java应用构建成Native

Keycloak Admin Client within Quarkus - java.lang.IncompatibleClassChangeError

白昼怎懂夜的黑 提交于 2020-02-21 06:04:00
问题 I'm writing a suite of microservices using Quarkus. These services will be protected using Quarkus' Keycloak extension. That interaction works great and without problem. Now I'm trying to add functionality to my microservices that will essentially broker communication with Keycloak and allow me to create users/groups/roles programmatically using the Keycloak admin client. I've added the Keycloak admin client dependency to my pom.xml : <dependency> <groupId>org.keycloak</groupId> <artifactId

Keycloak Admin Client within Quarkus - java.lang.IncompatibleClassChangeError

回眸只為那壹抹淺笑 提交于 2020-02-21 06:00:23
问题 I'm writing a suite of microservices using Quarkus. These services will be protected using Quarkus' Keycloak extension. That interaction works great and without problem. Now I'm trying to add functionality to my microservices that will essentially broker communication with Keycloak and allow me to create users/groups/roles programmatically using the Keycloak admin client. I've added the Keycloak admin client dependency to my pom.xml : <dependency> <groupId>org.keycloak</groupId> <artifactId

Keycloak Admin Client within Quarkus - java.lang.IncompatibleClassChangeError

别说谁变了你拦得住时间么 提交于 2020-02-21 05:59:28
问题 I'm writing a suite of microservices using Quarkus. These services will be protected using Quarkus' Keycloak extension. That interaction works great and without problem. Now I'm trying to add functionality to my microservices that will essentially broker communication with Keycloak and allow me to create users/groups/roles programmatically using the Keycloak admin client. I've added the Keycloak admin client dependency to my pom.xml : <dependency> <groupId>org.keycloak</groupId> <artifactId

quarkus reactive-postgresql-client with jaeger opentracing support

穿精又带淫゛_ 提交于 2020-01-25 08:50:29
问题 Based on this and this How would I enable tracing for reactive-sql-clients ? Now use %dev.quarkus.datasource.url=vertx-reactive:postgresql://dev-db-server:5432/mydb - it works, but no tracing support though. I can see racing for my rest calls but not the db. Tried to use %dev.quarkus.datasource.url=vertx-reactive:tracing:postgresql://dev-db-server:5432/mydb my deps: <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-smallrye-openapi</artifactId> </dependency> <dependency> <groupId

How to update the quarkus version used

淺唱寂寞╮ 提交于 2020-01-25 06:41:59
问题 What is the recommended way of upgrading the quarkus version used in an existing application? I have taken a look at my pom.xml, since the quarkus extensions dont specify the version used, I assume that they will get updated based on the main quarkus version. The properties which look to be relevant in the update are quarkus-plugin.version, quarkus.platform.group-id and surefire-plugin.version. How can I decide which ones to change, and is there anything else to be aware of? 回答1: There is one

How to update the quarkus version used

我的未来我决定 提交于 2020-01-25 06:40:28
问题 What is the recommended way of upgrading the quarkus version used in an existing application? I have taken a look at my pom.xml, since the quarkus extensions dont specify the version used, I assume that they will get updated based on the main quarkus version. The properties which look to be relevant in the update are quarkus-plugin.version, quarkus.platform.group-id and surefire-plugin.version. How can I decide which ones to change, and is there anything else to be aware of? 回答1: There is one

How to update the quarkus version used

血红的双手。 提交于 2020-01-25 06:40:08
问题 What is the recommended way of upgrading the quarkus version used in an existing application? I have taken a look at my pom.xml, since the quarkus extensions dont specify the version used, I assume that they will get updated based on the main quarkus version. The properties which look to be relevant in the update are quarkus-plugin.version, quarkus.platform.group-id and surefire-plugin.version. How can I decide which ones to change, and is there anything else to be aware of? 回答1: There is one

Quarkus / CDI and “java config” DI definitions

断了今生、忘了曾经 提交于 2020-01-16 01:46:16
问题 I just started a quarkus proof of concept. The containers-start time is amazing! Right now, I'm working on the Dependency Injection part. And figuring out the options. https://quarkus.io/blog/quarkus-dependency-injection/ My preferences are: I prefer constructor injection. (This has been going ok). I prefer "java config" so I can follow the "Composition Root" pattern of putting all my application dependency injections in a common place. (See https://blog.ploeh.dk/2011/07/28/CompositionRoot/ )

How do I enable Jaeger JDBC tracing in Quarkus

六眼飞鱼酱① 提交于 2020-01-15 10:21:52
问题 How do I enable Jaeger jdbc tracing in Quarkus ? I've followed the Quarkus guides for Opentracing and didn't see any info about this. I'm using Quarkus v0.21.2 with the following extensions: -quarkus-smallrye-opentracing -quarkus-resteasy -quarkus-resteasy-jackson -quarkus-hibernate-orm-panache -quarkus-jdbc-postgresql -quarkus-smallrye-openapi And my code is just a basic Rest endpoint which calls my entity's Panache CRUD operation. Any help is appreciated. I've tried the following and it