@ -4107,7 +4107,7 @@ as the following example shows:
@@ -4107,7 +4107,7 @@ as the following example shows:
----
HttpServletRequest request = ...
// Re-uses host, scheme, port, path and query string...
// Re-uses scheme, host, port, path, and query string...
URI uri = ServletUriComponentsBuilder.fromRequest(request)
.replaceQueryParam("accountId", "{id}")
@ -4118,7 +4118,7 @@ as the following example shows:
@@ -4118,7 +4118,7 @@ as the following example shows:
----
val request: HttpServletRequest = ...
// Re-uses host, scheme, port, path and query string...
// Re-uses scheme, host, port, path, and query string...
val uri = ServletUriComponentsBuilder.fromRequest(request)
.replaceQueryParam("accountId", "{id}")
@ -4130,7 +4130,9 @@ You can create URIs relative to the context path, as the following example shows
@@ -4130,7 +4130,9 @@ You can create URIs relative to the context path, as the following example shows
// Re-uses scheme, host, port, and context path...
URI uri = ServletUriComponentsBuilder.fromContextPath(request)
.path("/accounts")
@ -4140,7 +4142,9 @@ You can create URIs relative to the context path, as the following example shows
@@ -4140,7 +4142,9 @@ You can create URIs relative to the context path, as the following example shows