最贊回答 / s41253047
放在 src/main/resources/ 文件夾里(沒有該目錄就新建一個(gè)); target 目錄里面是 編譯后自動(dòng)生成的字節(jié)碼。
2017-05-21
最新回答 / loness
可以將代碼改成```? ? public static Connection getConnection() throws IOException, SQLException, ClassNotFoundException {? ? ? ? InputStream is = JDBCUtil.class.getResourceAsStream("/db.properties");? ? ? ? Properties properties = new Properties();? ? ? ? propert...
2017-05-10