@@ -816,8 +816,16 @@ added.
816
816
and `spring.freemarker.suffix`, defaults ``'' and ``.ftl'' respectively). It can be overriden
817
817
by providing a bean of the same name.
818
818
819
+ * If you use Groovy templates (actually if groovy-templates is on your classpath) you
820
+ also have a `Groovy TemplateViewResolver` with id
821
+ ``groovyTemplateViewResolver''. It looks for resources in a loader path by
822
+ surrounding the view name with a prefix and suffix (externalized to `spring.groovy.template.prefix`
823
+ and `spring.groovy.template.suffix`, defaults ``classpath:/templates/'' and ``.tpl'' respectively). It can be overriden
824
+ by providing a bean of the same name.
825
+
819
826
Check out {sc-spring-boot-autoconfigure}/web/WebMvcAutoConfiguration.{sc-ext}[`WebMvcAutoConfiguration`],
820
- {sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[`ThymeleafAutoConfiguration`], and
827
+ {sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[`ThymeleafAutoConfiguration`],
828
+ {sc-spring-boot-autoconfigure}/groovy/template/GroovyTemplateAutoConfiguration.{sc-ext}['GroovyTemplateAutoConfiguration'] and
821
829
{sc-spring-boot-autoconfigure}/freemarker/FreeMarkerAutoConfiguration.{sc-ext}['FreeMarkerAutoConfiguration']
822
830
823
831
@@ -1381,14 +1389,19 @@ If you are using Thymeleaf, then set `spring.thymeleaf.cache` to `false`. See
1381
1389
for other Thymeleaf customization options.
1382
1390
1383
1391
1384
-
1385
1392
[[howto-reload-freemarker-content]]
1386
1393
=== Reload FreeMarker templates without restarting the container
1387
1394
If you are using FreeMarker, then set `spring.freemarker.cache` to `false`. See
1388
1395
{sc-spring-boot-autoconfigure}/freemarker/FreeMarkerAutoConfiguration.{sc-ext}[`FreeMarkerAutoConfiguration`]
1389
1396
for other FreeMarker customization options.
1390
1397
1391
1398
1399
+ [[howto-reload-groovy-template-content]]
1400
+ === Reload Groovy templates without restarting the container
1401
+ If you are using Groovy templates, then set `spring.groovy.template.cache` to `false`. See
1402
+ {sc-spring-boot-autoconfigure}/groovy/template/GroovyTemplateAutoConfiguration.{sc-ext}[`GroovyTemplateAutoConfiguration`]
1403
+ for other Groovy customization options.
1404
+
1392
1405
1393
1406
[[howto-reload-java-classes-without-restarting]]
1394
1407
=== Reload Java classes without restarting the container
0 commit comments