[英]@WebFilter in maven dependency not being picked up by Quarkus
I have a servlet filter declared using the @WebFilter annotation which is not being picked up by Quarkus.我有一个使用 @WebFilter 注释声明的 servlet 过滤器,Quarkus 没有使用它。 To make sure servlet filters actually works with Quarkus I created a second filter within the Quarkus application itself and it is working as expected.为了确保 servlet 过滤器真正与 Quarkus 一起工作,我在 Quarkus 应用程序本身中创建了第二个过滤器,它按预期工作。
How can I get a servlet filter that resides within a maven dependency to work in Quarkus?如何让驻留在 maven 依赖项中的 servlet 过滤器在 Quarkus 中工作?
The link provided by @ladicek solved the problem - In my case what worked for me was to configure application.properties @ladicek 提供的链接解决了这个问题——在我的例子中,对我有用的是配置 application.properties
quarkus.index-dependency.<name>.group-id=my-group
quarkus.index-dependency.<name>.artifact-id=my-artifact
How to create a Jandex index in Quarkus for classes in a external module 如何在 Quarkus 中为外部模块中的类创建 Jandex 索引
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.