From adc4e05effa7c4a4e15a16b5c1470332dc9d8be5 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 24 Aug 2022 18:12:57 -0700 Subject: [PATCH] Polish --- .../freemarker/FreeMarkerAutoConfiguration.java | 2 +- .../autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfiguration.java index ff3980883a..6183c053ec 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfiguration.java @@ -64,7 +64,7 @@ public class FreeMarkerAutoConfiguration { if (locations.stream().noneMatch(this::locationExists)) { logger.warn("Cannot find template location(s): " + locations + " (please add some templates, " + "check your FreeMarker configuration, or set " - + "spring.freemarker.checkTemplateLocation=false)"); + + "spring.freemarker.check-template-location=false)"); } } } 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 866832ded2..5a47600901 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 @@ -101,8 +101,9 @@ public class ThymeleafAutoConfiguration { if (checkTemplateLocation) { TemplateLocation location = new TemplateLocation(this.properties.getPrefix()); if (!location.exists(this.applicationContext)) { - logger.warn("Cannot find template location: " + location + " (please add some templates or check " - + "your Thymeleaf configuration)"); + logger.warn("Cannot find template location: " + location + + " (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf." + + "check-template-location=false)"); } } }