From 5f2d34f526f3f2b3c41dbc39a69374e526b6b5aa Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 17 Nov 2015 15:19:40 -0500 Subject: [PATCH] Update Javadoc Issue: SPR-13678 --- .../org/springframework/web/util/UriComponentsBuilder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java b/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java index fe462ce31a..e7378cd664 100644 --- a/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java +++ b/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java @@ -584,8 +584,9 @@ public class UriComponentsBuilder implements Cloneable { } /** - * Append the given path segments to the existing path of this builder. - * Each given path segment may contain URI template variables. + * Append path segments to the existing path. Each path segment may contain + * URI template variables and should not contain any slashes. + * Use {@code path("/")} subsequently to ensure a trailing slash. * @param pathSegments the URI path segments * @return this UriComponentsBuilder */