我正在尝试检查是否存在多个系统属性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] 删除。
我来说两句