Skip to content

Commit e31c295

Browse files
committed
Merge branch '2.6.x' into 2.7.x
2 parents 4ade897 + adc4e05 commit e31c295

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
@@ -100,8 +100,9 @@ private void checkTemplateLocationExists() {
100100
if (checkTemplateLocation) {
101101
TemplateLocation location = new TemplateLocation(this.properties.getPrefix());
102102
if (!location.exists(this.applicationContext)) {
103-
logger.warn("Cannot find template location: " + location + " (please add some templates or check "
104-
+ "your Thymeleaf configuration)");
103+
logger.warn("Cannot find template location: " + location
104+
+ " (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf."
105+
+ "check-template-location=false)");
105106
}
106107
}
107108
}

0 commit comments

Comments
 (0)