@ -335,7 +335,7 @@ performance can be very important and there is no real need for the dynamism.
@@ -335,7 +335,7 @@ performance can be very important and there is no real need for the dynamism.
The new SpEL compiler is intended to address this need. The
compiler will generate a real Java class on the fly during evaluation that embodies the
expression behaviour and use that to achieve much faster expression
expression behavior and use that to achieve much faster expression
evaluation. Due to the lack of typing around expressions the compiler
uses information gathered during the interpreted evaluations of an
expression when performing compilation. For example, it does not know the type
@ -351,7 +351,7 @@ For a basic expression like this:
@@ -351,7 +351,7 @@ For a basic expression like this:
@ -497,7 +497,7 @@ Here is an example to set the default value of a field variable.
@@ -497,7 +497,7 @@ Here is an example to set the default value of a field variable.
----
public static class FieldValueTestBean
@Value("#{ systemProperties[''user.region''] }")
@Value("#{ systemProperties['user.region'] }")
private String defaultLocale;
public void setDefaultLocale(String defaultLocale) {
@ -520,7 +520,7 @@ The equivalent but on a property setter method is shown below.
@@ -520,7 +520,7 @@ The equivalent but on a property setter method is shown below.
private String defaultLocale;
@Value("#{ systemProperties[''user.region''] }")
@Value("#{ systemProperties['user.region'] }")
public void setDefaultLocale(String defaultLocale) {
this.defaultLocale = defaultLocale;
}
@ -544,7 +544,7 @@ Autowired methods and constructors can also use the `@Value` annotation.
@@ -544,7 +544,7 @@ Autowired methods and constructors can also use the `@Value` annotation.