37
37
*
38
38
* <pre class="code">
39
39
* <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
40
- * <property name="driverClassName" value="${driver}" />
41
- * <property name="url" value="jdbc:${dbname}" />
40
+ * <property name="driverClassName" value="${jdbc. driver}" />
41
+ * <property name="url" value="jdbc:${jdbc. dbname}" />
42
42
* </bean>
43
43
* </pre>
44
44
*
45
45
* Example properties file:
46
46
*
47
47
* <pre class="code">
48
- * driver=com.mysql.jdbc.Driver
49
- * dbname=mysql:mydb</pre>
48
+ * jdbc. driver=com.mysql.jdbc.Driver
49
+ * jdbc. dbname=mysql:mydb</pre>
50
50
*
51
51
* Annotated bean definitions may take advantage of property replacement using
52
52
* the {@link org.springframework.beans.factory.annotation.Value @Value} annotation:
79
79
* <p>Example XML property with default value:
80
80
*
81
81
* <pre class="code">
82
- * <property name="url" value="jdbc:${dbname:defaultdb}" />
82
+ * <property name="url" value="jdbc:${jdbc. dbname:defaultdb}" />
83
83
* </pre>
84
84
*
85
85
* @author Chris Beams
@@ -103,6 +103,7 @@ public abstract class PlaceholderConfigurerSupport extends PropertyResourceConfi
103
103
/** Default escape character: {@code '\'}. */
104
104
public static final Character DEFAULT_ESCAPE_CHARACTER = '\\' ;
105
105
106
+
106
107
/** Defaults to {@value #DEFAULT_PLACEHOLDER_PREFIX}. */
107
108
protected String placeholderPrefix = DEFAULT_PLACEHOLDER_PREFIX ;
108
109
@@ -133,34 +134,33 @@ public abstract class PlaceholderConfigurerSupport extends PropertyResourceConfi
133
134
134
135
/**
135
136
* Set the prefix that a placeholder string starts with.
136
- * The default is {@value #DEFAULT_PLACEHOLDER_PREFIX}.
137
+ * <p> The default is {@value #DEFAULT_PLACEHOLDER_PREFIX}.
137
138
*/
138
139
public void setPlaceholderPrefix (String placeholderPrefix ) {
139
140
this .placeholderPrefix = placeholderPrefix ;
140
141
}
141
142
142
143
/**
143
144
* Set the suffix that a placeholder string ends with.
144
- * The default is {@value #DEFAULT_PLACEHOLDER_SUFFIX}.
145
+ * <p> The default is {@value #DEFAULT_PLACEHOLDER_SUFFIX}.
145
146
*/
146
147
public void setPlaceholderSuffix (String placeholderSuffix ) {
147
148
this .placeholderSuffix = placeholderSuffix ;
148
149
}
149
150
150
151
/**
151
- * Specify the separating character between the placeholder variable
152
- * and the associated default value, or {@code null} if no such
153
- * special character should be processed as a value separator.
154
- * The default is {@value #DEFAULT_VALUE_SEPARATOR}.
152
+ * Specify the separating character between the placeholder variable and the
153
+ * associated default value, or {@code null} if no such special character
154
+ * should be processed as a value separator.
155
+ * <p> The default is {@value #DEFAULT_VALUE_SEPARATOR}.
155
156
*/
156
157
public void setValueSeparator (@ Nullable String valueSeparator ) {
157
158
this .valueSeparator = valueSeparator ;
158
159
}
159
160
160
161
/**
161
- * Specify the escape character to use to ignore placeholder prefix
162
- * or value separator, or {@code null} if no escaping should take
163
- * place.
162
+ * Specify the escape character to use to ignore the placeholder prefix or
163
+ * value separator, or {@code null} if no escaping should take place.
164
164
* <p>Default is {@link #DEFAULT_ESCAPE_CHARACTER}.
165
165
* @since 6.2
166
166
*/
0 commit comments