File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/mybatis/scripting/freemarker/support Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2015-2019 the original author or authors.
2
+ * Copyright 2015-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -208,7 +208,8 @@ private static boolean exists(String path) {
208
208
String basePath = languageDriverConfig .getTemplateFile ().getBaseDir ();
209
209
String actualPath = basePath .isEmpty () ? path : basePath + (basePath .endsWith ("/" ) ? "" : "/" ) + path ;
210
210
try {
211
- return Resources .getResourceAsFile (actualPath ).exists ();
211
+ Resources .getResourceURL (actualPath );
212
+ return true ;
212
213
} catch (IOException e ) {
213
214
return false ;
214
215
}
You can’t perform that action at this time.
0 commit comments