We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 210f4db + 6175bca commit 7b26660Copy full SHA for 7b26660
src/main/java/org/mybatis/scripting/thymeleaf/support/TemplateFilePathProvider.java
@@ -1,5 +1,5 @@
1
/**
2
- * Copyright 2018-2019 the original author or authors.
+ * Copyright 2018-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.
@@ -207,7 +207,8 @@ private static boolean exists(String path) {
207
String basePath = languageDriverConfig.getTemplateFile().getBaseDir();
208
String actualPath = basePath.isEmpty() ? path : basePath + (basePath.endsWith("/") ? "" : "/") + path;
209
try {
210
- return Resources.getResourceAsFile(actualPath).exists();
+ Resources.getResourceURL(actualPath);
211
+ return true;
212
} catch (IOException e) {
213
return false;
214
}
0 commit comments