Merge branch '2.1.x'

Closes gh-18437
This commit is contained in:
Stephane Nicoll 2019-09-29 16:22:58 +02:00
commit 1066b97113
1 changed files with 5 additions and 0 deletions

View File

@ -1171,6 +1171,11 @@ If you add your own, you have to be aware of the order and in which position you
It looks for resources in a loader path by surrounding the view name with a prefix and suffix (externalized to `spring.groovy.template.prefix` and `spring.groovy.template.suffix`).
The prefix and suffix have default values of '`classpath:/templates/`' and '`.tpl`', respectively.
You can override `GroovyMarkupViewResolver` by providing a bean of the same name.
* If you use Mustache, you also have a `MustacheViewResolver` named '`mustacheViewResolver`'.
It looks for resources by surrounding the view name with a prefix and suffix.
The prefix is `spring.mustache.prefix`, and the suffix is `spring.mustache.suffix`.
The values of the prefix and suffix default to '`classpath:/templates/`' and '`.mustache`', respectively.
You can override `MustacheViewResolver` by providing a bean of the same name.
For more detail, see the following sections: