You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document unsupported Freemarker properties with WebFlux
This commit updates the configuration metadata and the reference guide
to mention that certain FreeMarker features are not available with
WebFlux.
This stems mostly from the fact that the WebFlux integration is not
based on a AbstractTemplateView.
Closesgh-11199
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1444,6 +1444,34 @@
1444
1444
"reason": "Removed in the open source release of Flyway 7.12."
"description": "Whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name. Only supported with Spring MVC."
"description": "Whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name. Only supported with Spring MVC."
1454
+
},
1455
+
{
1456
+
"name": "spring.freemarker.cache",
1457
+
"description": "Whether to enable template caching. Only supported with Spring MVC."
1458
+
},
1459
+
{
1460
+
"name": "spring.freemarker.content-type",
1461
+
"description": "Content-Type value. Only supported with Spring MVC."
"description": "Whether to expose a RequestContext for use by Spring's macro library, under the name \"springMacroRequestContext\". Only supported with Spring MVC."
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/hotswapping.adoc
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,8 @@ See {code-spring-boot-autoconfigure-src}/thymeleaf/ThymeleafAutoConfiguration.ja
47
47
If you use FreeMarker, set `spring.freemarker.cache` to `false`.
48
48
See {code-spring-boot-autoconfigure-src}/freemarker/FreeMarkerAutoConfiguration.java[`FreeMarkerAutoConfiguration`] for other FreeMarker customization options.
49
49
50
+
NOTE: Template caching for FreeMarker is not supported with WebFlux.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/web/reactive.adoc
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,9 @@ Spring Boot includes auto-configuration support for the following templating eng
165
165
* https://www.thymeleaf.org[Thymeleaf]
166
166
* https://mustache.github.io/[Mustache]
167
167
168
+
NOTE: Not all FreeMarker features are supported with WebFlux.
169
+
For more details, check the description of each property.
170
+
168
171
When you use one of these templating engines with the default configuration, your templates are picked up automatically from `src/main/resources/templates`.
0 commit comments