File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ The following example shows how to configure a `RestTemplate`:
134
134
.Kotlin
135
135
----
136
136
// import org.springframework.web.util.DefaultUriBuilderFactory.EncodingMode
137
-
137
+
138
138
val baseUrl = "https://example.org"
139
139
val factory = DefaultUriBuilderFactory(baseUrl)
140
140
factory.encodingMode = EncodingMode.TEMPLATE_AND_VALUES
@@ -320,11 +320,11 @@ expanded.
320
320
* `VALUES_ONLY`: Does not encode the URI template and, instead, applies strict encoding
321
321
to URI variables through `UriUtils#encodeUriUriVariables` prior to expanding them into the
322
322
template.
323
- * `URI_COMPONENTS `: Uses `UriComponents#encode()`, corresponding to the second option in the earlier list, to
323
+ * `URI_COMPONENT `: Uses `UriComponents#encode()`, corresponding to the second option in the earlier list, to
324
324
encode URI component value _after_ URI variables are expanded.
325
325
* `NONE`: No encoding is applied.
326
326
327
- The `RestTemplate` is set to `EncodingMode.URI_COMPONENTS ` for historic
327
+ The `RestTemplate` is set to `EncodingMode.URI_COMPONENT ` for historic
328
328
reasons and for backwards compatibility. The `WebClient` relies on the default value
329
- in `DefaultUriBuilderFactory`, which was changed from `EncodingMode.URI_COMPONENTS ` in
329
+ in `DefaultUriBuilderFactory`, which was changed from `EncodingMode.URI_COMPONENT ` in
330
330
5.0.x to `EncodingMode.TEMPLATE_AND_VALUES` in 5.1.
You can’t perform that action at this time.
0 commit comments