We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42c3d19 + 312573c commit 399ff42Copy full SHA for 399ff42
src/main/java/org/mybatis/scripting/freemarker/support/TemplateFilePathProvider.java
@@ -1,5 +1,5 @@
1
/**
2
- * Copyright 2015-2019 the original author or authors.
+ * Copyright 2015-2020 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -208,7 +208,8 @@ private static boolean exists(String path) {
208
String basePath = languageDriverConfig.getTemplateFile().getBaseDir();
209
String actualPath = basePath.isEmpty() ? path : basePath + (basePath.endsWith("/") ? "" : "/") + path;
210
try {
211
- return Resources.getResourceAsFile(actualPath).exists();
+ Resources.getResourceURL(actualPath);
212
+ return true;
213
} catch (IOException e) {
214
return false;
215
}
0 commit comments