Skip to content

Commit fbb6b88

Browse files
committed
Document default prefix/suffix values
Closes gh-10290
1 parent b309495 commit fbb6b88

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,22 @@
230230
"http://localhost:9200"
231231
]
232232
},
233+
{
234+
"name": "spring.freemarker.prefix",
235+
"defaultValue": ""
236+
},
237+
{
238+
"name": "spring.freemarker.suffix",
239+
"defaultValue": ".ftl"
240+
},
241+
{
242+
"name": "spring.groovy.template.prefix",
243+
"defaultValue": ""
244+
},
245+
{
246+
"name": "spring.groovy.template.suffix",
247+
"defaultValue": ".tpl"
248+
},
233249
{
234250
"name": "spring.http.encoding.enabled",
235251
"type": "java.lang.Boolean",
@@ -399,6 +415,14 @@
399415
"description": "Enable SitePreferenceHandler.",
400416
"defaultValue": true
401417
},
418+
{
419+
"name": "spring.mustache.prefix",
420+
"defaultValue": "classpath:/templates/"
421+
},
422+
{
423+
"name": "spring.mustache.suffix",
424+
"defaultValue": ".html"
425+
},
402426
{
403427
"name": "spring.mvc.favicon.enabled",
404428
"type": "java.lang.Boolean",
@@ -504,6 +528,14 @@
504528
"type": "java.lang.Boolean",
505529
"description": "Enable the connection status view for supported providers.",
506530
"defaultValue": false
531+
},
532+
{
533+
"name": "spring.thymeleaf.prefix",
534+
"defaultValue": "classpath:/templates/"
535+
},
536+
{
537+
"name": "spring.thymeleaf.suffix",
538+
"defaultValue": ".html"
507539
}
508540
],"hints": [
509541
{

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ content into your application; rather pick only the properties that you need.
250250
spring.freemarker.prefix= # Prefix that gets prepended to view names when building a URL.
251251
spring.freemarker.request-context-attribute= # Name of the RequestContext attribute for all views.
252252
spring.freemarker.settings.*= # Well-known FreeMarker keys which will be passed to FreeMarker's Configuration.
253-
spring.freemarker.suffix= # Suffix that gets appended to view names when building a URL.
253+
spring.freemarker.suffix=.ftl # Suffix that gets appended to view names when building a URL.
254254
spring.freemarker.template-loader-path=classpath:/templates/ # Comma-separated list of template paths.
255255
spring.freemarker.view-names= # White list of view names that can be resolved.
256256

0 commit comments

Comments
 (0)