【问题标题】:JaxRsSecurityConfig conflict with quarkus-spring-data-rest and quarkus-resteasy-reactiveJaxRsSecurityConfig 与 quarkus-spring-data-rest 和 quarkus-resteasy-reactive 冲突
【发布时间】:2021-11-15 10:30:37
【问题描述】:

我想使用quarkus-resteasy-reactive 来利用@ServerExceptionMapper 的新错误处理,但我也想使用quarkus-spring-data-rest 来使用@RepositoryRestResource 注释。

问题是quarkus-spring-data-rest自带包quarkus-resteasy,和quarkus-resteasy-reactive冲突,因为both have JaxRsSecurityConfig.denyJaxRs,导致如下错误:

Multiple matching properties for name "security.jaxrs.deny-unannotated-endpoints" property was 
matched by both public boolean io.quarkus.resteasy.runtime.JaxRsSecurityConfig.denyJaxRs and 
public boolean io.quarkus.resteasy.reactive.common.runtime.JaxRsSecurityConfig.denyJaxRs. This is 
likely because you have an incompatible combination of extensions that both define the same 
properties (e.g. including both reactive and blocking database extensions)

有人可以同时使用这两个库吗?

【问题讨论】:

    标签: resteasy spring-data-rest quarkus


    【解决方案1】:

    2.3 版本开始,quarkus-spring-data-rest 将基于 RESTEasy Reactive。 在那之前,这两个扩展不能一起使用。

    更新

    该更改实际上已被还原,因为它导致了其他问题。我们会考虑在 2.4 中恢复它

    【讨论】:

    • 你确定是2.3版吗?我正在使用 quarkus-spring-data-rest:2.2.3.Final 并且它不是基于 RESTEasy Reactive。
    • 这就是我的回答:)
    • 哈哈不知什么原因我读了 2.2.3,我快疯了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-12
    • 2021-08-19
    • 2022-06-22
    • 1970-01-01
    • 2019-12-09
    • 1970-01-01
    • 2022-10-24
    相关资源
    最近更新 更多