如何为多个系统属性做多个逻辑端?

镇权

我正在尝试检查是否存在多个系统属性EnabledIf

当我对单个系统属性进行操作时,它似乎可以工作。

@EnabledIf(expression = "#{systemProperties['some'] != null}")

但是我无法使用多个系统属性。

@EnabledIf(expression = "#{systemProperties['some'] != null} and " +
                        "#{systemProperties['other'] != null}")

我怎样才能做到这一点?

加里·罗素

and需要是表达内:

@EnabledIf("#{systemProperties['some'] != null and "
           + "systemProperties['other'] != null}")

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章