JAVA读取Properties文件
时间:2014-03-26 07:41:59
收藏:0
阅读:421
Properties p = new Properties();//取得服务器的IP地址 String filePath = request.getSession().getServletContext().getRealPath("\\WEB-INF")+"\\conf.properties"; p.load(new FileInputStream(new File(filePath))); String stuffPath ="http://"+ p.getProperty("serIP")+":"+p.getProperty("serPort")+"/devAdm/upload/";
JAVA读取Properties文件,布布扣,bubuko.com
原文:http://www.cnblogs.com/zhougaojun/p/3624017.html
评论(0)
