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

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

作者: Adj15 | 来源:发表于2018-10-20 20:49 被阅读0次
    String path = jdbcUtil.class.getClassLoader().getResource("db.properties").getPath();
    

    相关文章

      网友评论

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

          本文链接:https://www.haomeiwen.com/subject/voomzftx.html