精華區beta java 關於我們 聯絡資訊
不好意思又來求救了QQ 小妹在使用lwdba時http://ppt.cc/Qe4a 讀取sql.properties這個檔案裡面的SQL時 出現java.lang.NullPointerException 不知道是不是讀不到sql.poperites的關係 而sql.properties是放在src裡第一層 因為之前的專案依照這樣的階層使用是正常的 system.propterties也都跟之前一樣 libary也整個從之前的專案copy來了 網路上關於lwdba的討論不多 所以來請教版上有沒有使用過lwdba的大大 附上相關程式碼 https://gist.github.com/anger625/ec72ac0ef806deabeacb https://gist.github.com/anger625/5771670 是在connectDB中的23行String queryText = sqlManager.getSQL("getText"); 出現NullPointerException 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.107.17