连接数据库时,读取 properties 文件路径的方式 2018-10-20 本文已影响0人 Adj15 String path = jdbcUtil.class.getClassLoader().getResource("db.properties").getPath();