连接数据库时,读取 properties 文件路径的方式

2018-10-20  本文已影响0人  Adj15
String path = jdbcUtil.class.getClassLoader().getResource("db.properties").getPath();
上一篇 下一篇

猜你喜欢

热点阅读