Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring el 如何为多个系统属性执行多个逻辑结束?_Spring El_Junit Jupiter - Fatal编程技术网

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}")