Skip to content

Commit 811d523

Browse files
committed
FreeMarkerConfigurationFactory falls back to SpringTemplateLoader on any exception
Issue: SPR-15445 (cherry picked from commit a55a0f2)
1 parent 40232f4 commit 811d523

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-context-support/src/main/java/org/springframework/ui/freemarker/FreeMarkerConfigurationFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -342,7 +342,7 @@ protected TemplateLoader getTemplateLoaderForPath(String templateLoaderPath) {
342342
}
343343
return new FileTemplateLoader(file);
344344
}
345-
catch (IOException ex) {
345+
catch (Exception ex) {
346346
if (logger.isDebugEnabled()) {
347347
logger.debug("Cannot resolve template loader path [" + templateLoaderPath +
348348
"] to [java.io.File]: using SpringTemplateLoader as fallback", ex);

0 commit comments

Comments
 (0)