How to connect two numeric string in jexl?
问题 For example: @Test public void test2() { JexlEngine jexl = new JexlEngine(); jexl.setLenient(false); jexl.setSilent(false); JexlContext jc = new MapContext(); Expression exp = jexl.createExpression("\"1\"+\"1\""); System.out.println(exp.evaluate(jc)); } actual result is: 2 my expected result is: "11" Please tell me what's wrong in the above example. And how can I get my expected result. Thanks! 回答1: Taking a look at http://svn.apache.org/viewvc/commons/proper/jexl/tags/COMMONS_JEXL_2_1_1/src