Skip to content

Commit b2b731b

Browse files
Fix links to UriComponentsBuilder and polish examples
Closes gh-36403 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent a3b9098 commit b2b731b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

framework-docs/modules/ROOT/partials/web/web-uris.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Kotlin::
128128
= UriBuilder
129129
[.small]#Spring MVC and Spring WebFlux#
130130

131-
<<web-uricomponents, `UriComponentsBuilder`>> implements `UriBuilder`. You can create a
131+
<<uricomponents, `UriComponentsBuilder`>> implements `UriBuilder`. You can create a
132132
`UriBuilder`, in turn, with a `UriBuilderFactory`. Together, `UriBuilderFactory` and
133133
`UriBuilder` provide a pluggable mechanism to build URIs from URI templates, based on
134134
shared configuration, such as a base URL, encoding preferences, and other details.
@@ -373,14 +373,14 @@ Java::
373373
[source,java,indent=0,subs="verbatim,quotes"]
374374
----
375375
String baseUrl = "https://example.com";
376-
DefaultUriBuilderFactory factory = new DefaultUriBuilderFactory(baseUrl)
376+
DefaultUriBuilderFactory factory = new DefaultUriBuilderFactory(baseUrl);
377377
factory.setEncodingMode(EncodingMode.TEMPLATE_AND_VALUES);
378378
379-
// Customize the RestTemplate..
379+
// Customize the RestTemplate.
380380
RestTemplate restTemplate = new RestTemplate();
381381
restTemplate.setUriTemplateHandler(factory);
382382
383-
// Customize the WebClient..
383+
// Customize the WebClient.
384384
WebClient client = WebClient.builder().uriBuilderFactory(factory).build();
385385
----
386386
@@ -393,12 +393,12 @@ Kotlin::
393393
encodingMode = EncodingMode.TEMPLATE_AND_VALUES
394394
}
395395
396-
// Customize the RestTemplate..
396+
// Customize the RestTemplate.
397397
val restTemplate = RestTemplate().apply {
398398
uriTemplateHandler = factory
399399
}
400400
401-
// Customize the WebClient..
401+
// Customize the WebClient.
402402
val client = WebClient.builder().uriBuilderFactory(factory).build()
403403
----
404404
======

0 commit comments

Comments
 (0)