FreeMarkerAutoConfiguration.java (spring-boot-2.7.3) | : | FreeMarkerAutoConfiguration.java (spring-boot-2.7.4) | ||
---|---|---|---|---|
skipping to change at line 67 | skipping to change at line 67 | |||
this.properties = properties; | this.properties = properties; | |||
checkTemplateLocationExists(); | checkTemplateLocationExists(); | |||
} | } | |||
public void checkTemplateLocationExists() { | public void checkTemplateLocationExists() { | |||
if (logger.isWarnEnabled() && this.properties.isCheckTemplateLoca tion()) { | if (logger.isWarnEnabled() && this.properties.isCheckTemplateLoca tion()) { | |||
List<TemplateLocation> locations = getLocations(); | List<TemplateLocation> locations = getLocations(); | |||
if (locations.stream().noneMatch(this::locationExists)) { | if (locations.stream().noneMatch(this::locationExists)) { | |||
logger.warn("Cannot find template location(s): " + locations + " (please add some templates, " | logger.warn("Cannot find template location(s): " + locations + " (please add some templates, " | |||
+ "check your FreeMarker configur ation, or set " | + "check your FreeMarker configur ation, or set " | |||
+ "spring.freemarker.checkTemplat eLocation=false)"); | + "spring.freemarker.check-templa te-location=false)"); | |||
} | } | |||
} | } | |||
} | } | |||
private List<TemplateLocation> getLocations() { | private List<TemplateLocation> getLocations() { | |||
List<TemplateLocation> locations = new ArrayList<>(); | List<TemplateLocation> locations = new ArrayList<>(); | |||
for (String templateLoaderPath : this.properties.getTemplateLoade rPath()) { | for (String templateLoaderPath : this.properties.getTemplateLoade rPath()) { | |||
TemplateLocation location = new TemplateLocation(template LoaderPath); | TemplateLocation location = new TemplateLocation(template LoaderPath); | |||
locations.add(location); | locations.add(location); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |