-1
爲什麼下面的代碼顯然不是TRUE時返回TRUE?春季表達式不評估簡單關係運算符
ExpressionParser parser = new SpelExpressionParser();
Integer s = new Integer(132);
EvaluationContext context = new StandardEvaluationContext();
context.setVariable("rpaCount", s);
Expression exp = parser.parseExpression("#rpaCount>1000");
Boolean truth = (Boolean)exp.getValue();
System.out.println(truth); // returning TRUE ....HOW is 132 > 1000?