diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java index 82fc1f65385..a448a03e008 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java @@ -264,8 +264,10 @@ public class ThymeleafAutoConfiguration { resolver.setResponseMaxChunkSizeBytes( this.properties.getReactive().getMaxChunkSize()); } - resolver.setFullModeViewNames(this.properties.getReactive().getFullModeViewNames()); - resolver.setChunkedModeViewNames(this.properties.getReactive().getChunkedModeViewNames()); + resolver.setFullModeViewNames( + this.properties.getReactive().getFullModeViewNames()); + resolver.setChunkedModeViewNames( + this.properties.getReactive().getChunkedModeViewNames()); // This resolver acts as a fallback resolver (e.g. like a // InternalResourceViewResolver) so it needs to have low precedence resolver.setOrder(Ordered.LOWEST_PRECEDENCE - 5); 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 b0942b69b41..2652987dcc0 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 @@ -89,7 +89,8 @@ public class ThymeleafProperties { private String[] viewNames; /** - * Comma-separated list of view names (patterns allowed) that should be excluded from resolution. + * Comma-separated list of view names (patterns allowed) that should be excluded from + * resolution. */ private String[] excludedViewNames; @@ -218,8 +219,8 @@ public class ThymeleafProperties { public static class Reactive { /** - * Maximum size of data buffers used for writing to the response, in bytes. Templates will - * execute in CHUNKED mode by default if this is set a value. + * Maximum size of data buffers used for writing to the response, in bytes. + * Templates will execute in CHUNKED mode by default if this is set a value. */ private int maxChunkSize; @@ -229,18 +230,17 @@ public class ThymeleafProperties { private List mediaTypes; /** - * Comma-separated list of view names (patterns allowed) that should be executed in FULL mode - * even if a max chunk size is set. + * Comma-separated list of view names (patterns allowed) that should be executed + * in FULL mode even if a max chunk size is set. */ private String[] fullModeViewNames; /** - * Comma-separated list of view names (patterns allowed) that should be the only ones executed - * in CHUNKED mode when a max chunk size is set. + * Comma-separated list of view names (patterns allowed) that should be the only + * ones executed in CHUNKED mode when a max chunk size is set. */ private String[] chunkedModeViewNames; - public List getMediaTypes() { return this.mediaTypes; } diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java index aae0eb35f2d..240554ac96f 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java @@ -122,7 +122,8 @@ public class ThymeleafReactiveAutoConfigurationTests { @Test public void overrideFullModeViewNames() throws Exception { - load(BaseConfiguration.class, "spring.thymeleaf.reactive.fullModeViewNames:foo,bar"); + load(BaseConfiguration.class, + "spring.thymeleaf.reactive.fullModeViewNames:foo,bar"); ThymeleafReactiveViewResolver views = this.context .getBean(ThymeleafReactiveViewResolver.class); assertThat(views.getFullModeViewNames()).isEqualTo(new String[] { "foo", "bar" }); @@ -130,10 +131,12 @@ public class ThymeleafReactiveAutoConfigurationTests { @Test public void overrideChunkedModeViewNames() throws Exception { - load(BaseConfiguration.class, "spring.thymeleaf.reactive.chunkedModeViewNames:foo,bar"); + load(BaseConfiguration.class, + "spring.thymeleaf.reactive.chunkedModeViewNames:foo,bar"); ThymeleafReactiveViewResolver views = this.context .getBean(ThymeleafReactiveViewResolver.class); - assertThat(views.getChunkedModeViewNames()).isEqualTo(new String[] { "foo", "bar" }); + assertThat(views.getChunkedModeViewNames()) + .isEqualTo(new String[] { "foo", "bar" }); } @Test