diff --git a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/support/RedirectAttributes.java b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/support/RedirectAttributes.java index 682c7964d79..4e2d8d5acf7 100644 --- a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/support/RedirectAttributes.java +++ b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/support/RedirectAttributes.java @@ -48,8 +48,11 @@ import org.springframework.web.servlet.FlashMap; * } * * + *

A RedirectAttributes model is empty when the method is called and is never + * used unless the method returns a redirect view name or a RedirectView. + * *

After the redirect, flash attributes are automatically added to the model - * of the controller serving the redirect URL. + * of the controller that serves the target URL. * * @author Rossen Stoyanchev * @since 3.1