1.16. 聚合 Quarkus CXF 发行注记 3.15.3 LTS → 3.20.2 LTS


本节可能有助于从 3.15 LTS 流升级到 3.20 LTS 流。

1.16.1. 重要的依赖项升级

1.16.2. Quarkus CXF 中的新功能和值得注意

基于 Vert.x HttpClient 的 HTTP Conduit 是在 Quarkus CXF 3.13.0 中引入的。其用法是可选的,通过在其中一个选项 quarkus.cxf.client."client-name".http-conduit-factoryquarkus.cxf.http-conduit-factory 中设置 VertxHttpClientHTTPConduit -factory :

application.properties

# Before Quarkus CXF 3.16.0, VertxHttpClientHTTPConduitFactory had to be set explicitly
# Set the HTTPConduitFactory per-client
quarkus.cxf.client."client-name".http-conduit-factory = VertxHttpClientHTTPConduitFactory
# Set the HTTPConduitFactory globally
quarkus.cxf.http-conduit-factory = VertxHttpClientHTTPConduitFactory

从那时起,它进行了一些改进和测试,现在我们现在能够保证它默认。

使用基于 Vert.x HttpClient 的 HTTP Conduit 的主要动机如下:

  • 支持 HTTP/2
  • 与 Quarkus 的无缝集成,特别是在 worker 线程池和 SSL/TLS 配置方面。
1.16.2.2.1. 强制旧的默认值

在此更改之前,有效默认为 URLConnectionHTTPConduitFactory。它仍然会被定期支持和测试。

您可以通过三种方式之一返回旧的默认值:

  1. QUARKUS_CXF_DEFAULT_HTTP_CONDUIT_FACTORY 环境变量设置为 URLConnectionHTTPConduitFactory
  2. 将全局 quarkus.cxf.http-conduit-factory 选项设置为 URLConnectionHTTPConduitFactory
  3. 将每个客户端 quarkus.cxf.client."client-name".http-conduit-factory 选项设置为 URLConnectionHTTPConduitFactory

从 Quarkus CXF 3.16.0 开始,将 quarkus.cxf.client."client-name".hostname-verifier 与默认的 VertxHttpClientHTTPConduitFactory 一起设置会导致运行时异常。

可以使用 命名 TLS 配置 替换该选项的 AllowAllHostnameVerifier 值,并将 hostname-verification-algorithm 设置为 NONE

下面是一个示例:如果您的配置在 Quarkus CXF 3.16.0 之前配置如下

application.properties

# A configuration that worked before Quarkus CXF 3.16.0
quarkus.cxf.client.helloAllowAll.client-endpoint-url = https://localhost:8444/services/hello
quarkus.cxf.client.helloAllowAll.service-interface = io.quarkiverse.cxf.it.security.policy.HelloService
quarkus.cxf.client.helloAllowAll.trust-store = client-truststore.pkcs12
quarkus.cxf.client.helloAllowAll.trust-store-password = secret
quarkus.cxf.client.helloAllowAll.hostname-verifier = AllowAllHostnameVerifier

然后,Quarkus CXF 3.16.0+ 的等效配置是

application.properties

# An equivalent configuration for Quarkus CXF 3.16.0+
quarkus.tls.helloAllowAll.trust-store.p12.path = client-truststore.pkcs12
quarkus.tls.helloAllowAll.trust-store.p12.password = secret
quarkus.tls.helloAllowAll.hostname-verification-algorithm = NONE
quarkus.cxf.client.helloAllowAll.client-endpoint-url = https://localhost:8444/services/hello
quarkus.cxf.client.helloAllowAll.service-interface = io.quarkiverse.cxf.it.security.policy.HelloService
quarkus.cxf.client.helloAllowAll.tls-configuration-name = helloAllowAll

1.16.3. 错误修正

1.16.4. 启用

1.16.4.3. 弃用的配置属性

1.16.5. 完全更改日志

https://github.com/quarkiverse/quarkus-cxf/compare/3.15.3...3.20.2

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部