Skip to content

Commit adc4e05

Browse files
committed
Polish
1 parent ccc80f3 commit adc4e05

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void checkTemplateLocationExists() {
6464
if (locations.stream().noneMatch(this::locationExists)) {
6565
logger.warn("Cannot find template location(s): " + locations + " (please add some templates, "
6666
+ "check your FreeMarker configuration, or set "
67-
+ "spring.freemarker.checkTemplateLocation=false)");
67+
+ "spring.freemarker.check-template-location=false)");
6868
}
6969
}
7070
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ private void checkTemplateLocationExists() {
101101
if (checkTemplateLocation) {
102102
TemplateLocation location = new TemplateLocation(this.properties.getPrefix());
103103
if (!location.exists(this.applicationContext)) {
104-
logger.warn("Cannot find template location: " + location + " (please add some templates or check "
105-
+ "your Thymeleaf configuration)");
104+
logger.warn("Cannot find template location: " + location
105+
+ " (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf."
106+
+ "check-template-location=false)");
106107
}
107108
}
108109
}

0 commit comments

Comments
 (0)