Spring el 如何为多个系统属性执行多个逻辑结束?
我正在尝试检查Spring el 如何为多个系统属性执行多个逻辑结束?,spring-el,junit-jupiter,Spring El,Junit Jupiter,我正在尝试检查EnabledIf是否存在多个系统属性 当我创建单个系统属性时,它似乎可以工作 @EnabledIf(expression = "#{systemProperties['some'] != null}") 但是我在多个系统属性上失败了 @EnabledIf(expression = "#{systemProperties['some'] != null} and " + "#{systemProperties['other'] !=
EnabledIf
是否存在多个系统属性
当我创建单个系统属性时,它似乎可以工作
@EnabledIf(expression = "#{systemProperties['some'] != null}")
但是我在多个系统属性上失败了
@EnabledIf(expression = "#{systemProperties['some'] != null} and " +
"#{systemProperties['other'] != null}")
我该怎么做?和
需要在表达式中:
@EnabledIf("#{systemProperties['some'] != null and "
+ "systemProperties['other'] != null}")