Correct encode Javadoc for UriComponents and UriComponentsBuilder

Closes gh-36040
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
Tran Ngoc Nhan
2025-12-30 15:26:08 +01:00
committed by Sébastien Deleuze
parent 0048f01074
commit b8ed4f2ba8
@@ -268,9 +268,9 @@ response to a browser.
`UriComponentsBuilder` exposes encoding options at two levels:
* {spring-framework-api}/web/util/UriComponentsBuilder.html#encode--[UriComponentsBuilder#encode()]:
* {spring-framework-api}/web/util/UriComponentsBuilder.html#encode()[UriComponentsBuilder#encode()]:
Pre-encodes the URI template first and then strictly encodes URI variables when expanded.
* {spring-framework-api}/web/util/UriComponents.html#encode--[UriComponents#encode()]:
* {spring-framework-api}/web/util/UriComponents.html#encode()[UriComponents#encode()]:
Encodes URI components _after_ URI variables are expanded.
Both options replace non-ASCII and illegal characters with escaped octets. However, the first option