mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-30 14:19:30 +00:00
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:
+5
@@ -75,4 +75,9 @@ public class MustacheViewResolver extends AbstractTemplateViewResolver {
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected AbstractUrlBasedView instantiateView() {
|
||||
return (getViewClass() == MustacheView.class) ? new MustacheView() : super.instantiateView();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user