Skip to content

Commit 909156e

Browse files
committed
Fix test failure
1 parent 7aa3cc9 commit 909156e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ protected boolean hasBeanOfType(Class<?> beanType) {
280280

281281

282282
protected int getOrder() {
283-
return this.order;
283+
return (this.order != null ? this.order : Ordered.LOWEST_PRECEDENCE);
284284
}
285285

286286
protected List<ViewResolver> getViewResolvers() {

0 commit comments

Comments
 (0)