0
我的問題是我無法使用Vaadin連接到我的sqlite數據庫文件。我總是得到一個請求的資源不可用的錯誤。我的代碼有什麼問題?使用Vaadin連接到sqlite文件
private Container buildContainer() throws SQLException {
SimpleJDBCConnectionPool connectionPool = new SimpleJDBCConnectionPool(
"org.sqlite.JDBC", "jdbc:sqlite:e:/teszt.db", "", "");
SQLContainer container = new SQLContainer(new FreeformQuery(
"SELECT users.name, departments.name"
+ "FROM users"
+ "INNER JOIN departments ON users.department = departments.id",
connectionPool));
return container;
}