提交 f9651235 编写于 作者: J Juergen Hoeller

Correct SpEL example (matching its comment)

Issue: SPR-16111
上级 9bab7a27
......@@ -776,7 +776,7 @@ on literals. Varargs are also supported.
[subs="verbatim,quotes"]
----
// string literal, evaluates to "bc"
String c = parser.parseExpression("'abc'.substring(2, 3)").getValue(String.class);
String bc = parser.parseExpression("'abc'.substring(1, 3)").getValue(String.class);
// evaluates to true
boolean isMember = parser.parseExpression("isMember('Mihajlo Pupin')").getValue(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册