总结一下EL表达式的逻辑判断
1:eq相等 ne、neq不相等;
2:gt大于, lt小于;
3:ge大于等于
le 小于等于
4:not非 mod求模
is [not] div by是否能被某数整除
is [not] even是否为偶数
is [not] even by $b即($a / $b) % 2 == 0
is [not] odd是否为奇
is not odd by $b即($a / $b) % 2 != 0
String exp = "#ctr ge 100 && #ctr lt 200";
Map<String, Object> contextRoot=Maps.newHashMap();
contextRoot.put("ctr",100);
StandardEvaluationContext context = new StandardEvaluationContext();
context.setVariables(contextRoot);
ExpressionParser elParser = new SpelExpressionParser();
Boolean value = elParser.parseExpression(exp).getValue(context, Boolean.class);
System.out.println(value);