diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java index 7805e67287..2481187434 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafProperties.java @@ -102,12 +102,10 @@ public class ThymeleafProperties { private boolean enableSpringElCompiler; /** - * Whether hidden form inputs acting as markers for checkboxes (which are omitted from - * form submission when unchecked) should be rendered before or after the rendered - * checkbox element itself for better integration with some CSS frameworks. Default is - * "false" (hiddens will be rendered after checkboxes). + * Whether hidden form inputs acting as markers for checkboxes should be rendered + * before the checkbox element itself. */ - private boolean renderHiddenMarkersBeforeCheckboxes; + private boolean renderHiddenMarkersBeforeCheckboxes = false; /** * Whether to enable Thymeleaf view resolution for Web frameworks. @@ -215,7 +213,7 @@ public class ThymeleafProperties { } public boolean isRenderHiddenMarkersBeforeCheckboxes() { - return renderHiddenMarkersBeforeCheckboxes; + return this.renderHiddenMarkersBeforeCheckboxes; } public void setRenderHiddenMarkersBeforeCheckboxes( @@ -239,10 +237,8 @@ public class ThymeleafProperties { private MimeType contentType = MimeType.valueOf("text/html"); /** - * Whether Thymeleaf should start sending partial output to the server's output - * buffers as soon as it becomes available (default), or instead wait until - * template processing is finished, keeping all rendered results in memory until - * that moment and sending them to the server's output buffers in a single call. + * Whether Thymeleaf should start writing partial output as soon as possible or + * buffer until template processing is finished. */ private boolean producePartialOutputWhileProcessing = true; @@ -255,7 +251,7 @@ public class ThymeleafProperties { } public boolean isProducePartialOutputWhileProcessing() { - return producePartialOutputWhileProcessing; + return this.producePartialOutputWhileProcessing; } public void setProducePartialOutputWhileProcessing( diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc index 7afa3f83cd..1ab4097974 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc @@ -512,7 +512,9 @@ content into your application. Rather, pick only the properties that you need. spring.thymeleaf.reactive.full-mode-view-names= # Comma-separated list of view names (patterns allowed) that should be executed in FULL mode even if a max chunk size is set. spring.thymeleaf.reactive.max-chunk-size=0B # Maximum size of data buffers used for writing to the response. spring.thymeleaf.reactive.media-types= # Media types supported by the view technology. + spring.thymeleaf.render-hidden-markers-before-checkboxes= # Whether hidden form inputs acting as markers for checkboxes should be rendered before the checkbox element itself. spring.thymeleaf.servlet.content-type=text/html # Content-Type value written to HTTP responses. + spring.thymeleaf.servlet.produce-partial-output-while-processing # Whether Thymeleaf should start writing partial output as soon as possible or buffer until template processing is finished. spring.thymeleaf.suffix=.html # Suffix that gets appended to view names when building a URL. spring.thymeleaf.template-resolver-order= # Order of the template resolver in the chain. spring.thymeleaf.view-names= # Comma-separated list of view names (patterns allowed) that can be resolved.