diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/UrlFilenameViewController.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/UrlFilenameViewController.java index 6b6a3876527..07ecbfeee24 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/UrlFilenameViewController.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/UrlFilenameViewController.java @@ -28,21 +28,17 @@ import org.springframework.web.util.ServletRequestPathUtils; /** * Simple {@code Controller} implementation that transforms the virtual - * path of a URL into a view name and returns that view. + * path of a URL into a view name and returns that view, optionally prepending a + * {@link #setPrefix prefix} and/or appending a {@link #setSuffix suffix}. * - *
Can optionally prepend a {@link #setPrefix prefix} and/or append a - * {@link #setSuffix suffix} to build the viewname from the URL filename. - * - *
Find some examples below: + *
This is intended for use with individually mapped static content pages + * such as a home page or an index page. See examples below: *
Thanks to David Barri for suggesting prefix/suffix support! - * * @author Alef Arendsen * @author Juergen Hoeller * @author Rob Harrop