Sync docs from master to gh-pages

This commit is contained in:
buildmaster
2018-04-05 16:39:35 +00:00
parent ee218f83e2
commit 800a166500
3 changed files with 3 additions and 3 deletions

View File

@@ -1365,7 +1365,7 @@ public TagValueResolver tagValueResolver() {
<title>Resolving Expressions for a Value</title>
<simpara>Consider the following annotated method:</simpara>
<programlisting language="java" linenumbering="unnumbered">@NewSpan
public void getAnnotationForTagValueExpression(@SpanTag(key = "test", expression = "length() + ' characters'") String test) {
public void getAnnotationForTagValueExpression(@SpanTag(key = "test", expression = "'hello' + ' characters'") String test) {
}</programlisting>
<simpara>No custom implementation of a <literal>TagValueExpressionResolver</literal> leads to evaluation of the SPEL expression, and a tag with a value of <literal>4 characters</literal> is set on the span.
If you want to use some other expression resolution mechanism, you can create your own implementation of the bean.</simpara>