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