提交 fba74c34 authored 作者: Thomas Mueller's avatar Thomas Mueller

Reading a resource from the classpath didn't work if there was a leading slash…

Reading a resource from the classpath didn't work if there was a leading slash (classpath:/org/...). Now resources can be loaded with or without leading slash.
上级 b53221d0
...@@ -48,7 +48,7 @@ public class TestRunscript extends TestBase implements Trigger { ...@@ -48,7 +48,7 @@ public class TestRunscript extends TestBase implements Trigger {
Connection conn; Connection conn;
conn = getConnection("runscript"); conn = getConnection("runscript");
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("runscript from 'classpath:org/h2/samples/newsfeed.sql'"); stat.execute("runscript from 'classpath:/org/h2/samples/newsfeed.sql'");
stat.execute("select * from version"); stat.execute("select * from version");
conn.close(); conn.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论