diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java index f70650bd0d..a512521966 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java @@ -280,7 +280,7 @@ public class ViewResolverRegistry { protected int getOrder() { - return this.order; + return (this.order != null ? this.order : Ordered.LOWEST_PRECEDENCE); } protected List getViewResolvers() {