You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Quarkus运行报security.jaxrs.deny-unannotated-endpoints多属性匹配错误如何解决?

错误原因

你遇到的配置冲突错误由项目同时引入了两套不兼容的JAX-RS实现导致:
你的pom中同时存在阻塞式RESTEasy栈的依赖(quarkus-resteasy-jsonb、quarkus-resteasy-mutiny)和响应式RESTEasy Reactive栈的依赖(quarkus-resteasy-reactive),两套实现都内置了同名的JAX-RS安全配置属性,启动时Quarkus无法判断该加载哪套配置,因此抛出冲突错误。
你当前的需求是基于Mutiny Multi实现SSE流式返回,RESTEasy Reactive本身已经原生支持该能力,不需要额外引入阻塞式RESTEasy的适配依赖。

解决方案
  1. 移除pom.xml中两个阻塞式RESTEasy的冲突依赖:
<!-- 删除以下两个依赖 -->
<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-resteasy-jsonb</artifactId>
</dependency>
<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-resteasy-mutiny</artifactId>
</dependency>
  1. 若项目需要JSON序列化能力,补充响应式栈对应的JSONB依赖:
<dependency>
  <groupId>io.quarkus</groupId>
  <artifactId>quarkus-resteasy-reactive-jsonb</artifactId>
</dependency>
  1. 现有SSE接口代码无需修改,重启项目即可正常运行。

内容的提问来源于stack exchange,提问作者Daniel Sobrado

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.21 15:24:04