提交 5176e546 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 1e46ae2c
...@@ -38,6 +38,7 @@ public class Newsfeed { ...@@ -38,6 +38,7 @@ public class Newsfeed {
Connection conn = DriverManager.getConnection("jdbc:h2:mem:", "sa", ""); Connection conn = DriverManager.getConnection("jdbc:h2:mem:", "sa", "");
InputStream in = Newsfeed.class.getResourceAsStream("newsfeed.sql"); InputStream in = Newsfeed.class.getResourceAsStream("newsfeed.sql");
ResultSet rs = RunScript.execute(conn, new InputStreamReader(in, "ISO-8859-1")); ResultSet rs = RunScript.execute(conn, new InputStreamReader(in, "ISO-8859-1"));
in.close();
while (rs.next()) { while (rs.next()) {
String file = rs.getString("FILE"); String file = rs.getString("FILE");
String content = rs.getString("CONTENT"); String content = rs.getString("CONTENT");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论