Merge pull request #24011 from dsyer

* gh-24011:
  Polish "Align MustacheViewResolver with other similar resolvers"
  Align MustacheViewResolver with other similar resolvers

Closes gh-24011
This commit is contained in:
Andy Wilkinson 2020-11-03 14:28:34 +00:00
commit 07d92373df
1 changed files with 5 additions and 0 deletions

View File

@ -75,4 +75,9 @@ public class MustacheViewResolver extends AbstractTemplateViewResolver {
return view;
}
@Override
protected AbstractUrlBasedView instantiateView() {
return (getViewClass() == MustacheView.class) ? new MustacheView() : super.instantiateView();
}
}