Quarkus Framework提供了一些注入属性值的bean的注释?
嗨,大家好,我有疑问,我只是尝试注入或仅在启用属性值时才初始化过滤器请求。
当值es false时,此过滤器将是i拦截请求。
例如,在春季框架中,您可以在这种情况下使用@conditionalonproperty,但是在Quarkus我正在测试whit @ifbuildproperty和@lookupifproperty,但是我的测试中的结果不能像春季功能那样工作。
Quarkus的属性: enable.filter.request = true #false:不过滤或初始化此过滤器
Hi guys I have a doubt I am trying to inject or only initialize filter request only when a property value is enabled.
When the value es false this filter not will be inject o intercept requests.
For example in Spring Framework you ca use @ConditionalOnProperty for this scenario but in Quarkus I am testing whit @IfBuildProperty and @LookupIfProperty but the results in my test not work like Spring features.
Properties of quarkus:
enable.filter.request=true #false: not filter or initialize this filter
My reference is this: https://github.com/quarkusio/quarkus/issues/20099
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论