cost 81 ms
具有动态自定义 header 的动态 API 客户端(Microprofile、Quarkus) - Dynamic API client with dynamic custom header (Microprofile, Quarkus)

我想创建一个自定义客户端 API(在非 Java RS 环境中)。 API 需要有一个自定义基数 URL 和一个自定义 Header。 我通过以下实现了自定义基础 URL,它就像一个魅力 但是,我找不到任何允许自定义标头与生成的 API 紧密耦合的解决方案。我能做的唯一可行的解决方案是在实现 C ...

在 quarkus 应用程序中使用自定义 OASFilter 覆盖 smallrye microprofile 中的 ref 值 - Override ref value in smallrye microprofile using custom OASFilter in quarkus application

我正在尝试覆盖 quarkus 应用程序中 microprofile 运行状况检查 API 架构中的 ref 值。 我点击以下链接Smallrye 打开 api 拦截器并创建了一个覆盖 OASFilter 的自定义过滤器。 但是,ref 值并没有从过滤器中选择新的 ref 值。 基本上,我需要为模式 ...

MicroProfile LRA - 如何在 WildFly JEE 应用程序上定义自定义参与者 URI? - MicroProfile LRA - How to define custom participant URI on a WildFly JEE application?

当 MicroProfile LRA 协调器和参与者运行在不同的 Docker 容器上时,需要为每个参与者定义一个自定义的 URI。 否则,LRA 协调器会尝试通过使用基于“本地主机”的 URI 引用参与者来调用参与者补偿/完成 API。 是否可以在 WildFly 环境中为参与者定义自定义 UR ...

Wildfly 上的 MicroProfile LRA - 如何在 WildFly 上运行的客户端应用程序上设置 LRA 协调器主机和端口 - MicroProfile LRA on Wildfly - How to setup LRA coordinator host and port on client application runing on WildFly

我已经在已经在 WildFly AS 上运行的 MicroProfile 应用程序上引入了 LRA。 为了让 LRA 正常工作,我在我的应用程序 pom.xml 中添加了以下依赖项<dependency> <groupId>org.jboss.narayana.rts ...

如何将配置中的集合转换为 Microprofile/Quarkus/Smallrye 中的环境变量 - How to convert a collection in config to environment variable in Microprofile/Quarkus/Smallrye

我们在 K8 集群中运行我们的应用程序,并依赖于环境变量的配置。 Quarkus中application.properties/application.yaml参数的转换,适用以下转换规则: https://github.com/eclipse/microprofile-config/blob/m ...

如何使用 java-ee8、microProfile 4.0、Openliberty 21 和 Docker 设置特定于阶段的 microprofile 配置 - How to setup stage-specific microprofile config with java-ee8, microProfile 4.0, Openliberty 21 and Docker

我的应用程序在 docker 容器中使用 JavaEE8、Openliberty 21.0.0.5 和 Microprofile 4.0 时遇到问题。 我无法从图像的“外部”设置 mpConfig-2.0 引入的mp.config.profile 。 我的设置如下: 在src/main/reso ...

Kumuluzee 微配置文件 rest 客户端 - 无法在错误响应中获取响应正文 - Kumuluzee microprofile rest client - cannot get response body in error responses

我正在尝试在 Kumuluzee 3.9.0 上运行的 java 应用程序中获取错误响应正文。 我不知道,为什么无法从 HTTP 状态 4xx 的响应中获得响应。 我试图通过将实体转换为 InputStream 来获取响应主体并在循环中读取字节,但没有返回字节。 IDE 调试器显示带有 byteA ...

无法 map / 在 Microprofile Rest 客户端中获取 422 错误代码的响应实体 - Unable to map / fetch the response entity on 422 error code in Microprofile Rest Client

我有一个 API,当我通过 postman 调用它时,它会在以下情况下给出以下响应: Case1:状态码:200 Case2:状态码:422 我想通过使用 quarkus/java 项目的 microprofile restclient 实现上述两个案例的相同结果。 所以创建了下面的类 Java ...

我应该将@ConfigProperty 字段包装在 javax.enterprise.inject.Instance object 中吗? - Should I wrap @ConfigProperty fields in a javax.enterprise.inject.Instance object?

在我的 quarkus 项目中,我在过滤器(ContainerRequestFilter、ContainerResponseFilter)中注入了几个 ConfigProperty。 这在启动时给了我以下警告: 但是,配置指南从未提及这一点,甚至显示了在 JAX-RS 资源中注入 ConfigPr ...

使用 mp.config.profile 设置 Microprofile 活动配置文件在 Liberty 中不起作用 - Setting Microprofile active profile using mp.config.profile not working in Liberty

我目前正在尝试将 microprofile 开放自由项目作为 jar 运行。 java -jar myapp.jar -Dmp.config.profile=test 该应用程序运行但没有从 microprofile-config-test.properties 中选择配置值,而是使用来自 mic ...

Microprofile Config:容错度量标签的动态 ConfigSource 值 - Microprofile Config: Dynamic ConfigSource values for faulttolerance metric tags

我目前正在研究为微配置文件容错框架设置度量标签的解决方案。 我们将它与指标一起使用,但不能通过容错注释直接设置标签。 所以我们想出了一个解决方法,通过 Interceptor 设置ThreadLocal值,然后由自定义ConfigSource读取。 ConfigSource在其getValue(f ...

如何将 @ConfigProperties 与 Converter 类一起使用 - How to use @ConfigProperties with a Converter class

我尝试实现自定义配置类型并且它起作用了。 但是,当我使用@ConfigProperties将自定义类型与一组配置一起使用时,它无法通过名称自动识别该属性,而是将该属性视为具有嵌套属性的对象。 我怎样才能正确地实现这样的行为? (我是 Quarkus 的新手,所以如果我在这里做错了什么,请纠正我) ...

没有 bean 有资格注入到注入点[JSR-365 5.2.2] - No bean is eligible for injection to the injection point[JSR-365 5.2.2]

大多数时候,我在基于 MicroProfile 的微服务中使用 @Inject 注释,我得到“没有 bean 有资格注入到注入点 [JSR-365 5.2.2]”作为警告。 这个警告的原因是什么?为了克服它可以做些什么? 比如说。 我为属性文件注入编写了代码- 现在在 @Inject 注释处,它显 ...

“dev”配置覆盖 Quarkus 中的“test”配置 - “dev” config overrides “test” config in Quarkus

在我的 Quarkus 应用程序中,我不希望 Git 对密码进行版本控制。 我对prod配置文件没有任何问题,因为我在$PWD/config/application.properties中有一个配置文件。 美好的。 对于dev配置文件,我使用.env方法,其中包含以下属性: 我正在尝试设置测试,我需 ...

将自定义 application.yml 配置的子集加载到 Quarkus 中的地图时遇到问题 - Trouble loading a subset of custom application.yml configurations to a Map in Quarkus

我正在尝试使用 quarkus yaml 扩展作为我的主要配置来源,我试图找出从 yaml 文件加载地图的最佳方法是什么。 application.yml : 在代码中,我尝试像这样注入配置值: 其中 Values 包含自定义 Eclipse Microprofile Converter ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM