web项目中JAVA读取properties文件

resources下:properties.load(this.getClass().getClassLoader().getResourceAsStream("alipayKey.properties"));

WebRoot下:request.getServletContext().getResourceAsStream("alipayKey.properties");

 

posted on 2017-05-22 14:48  y_浩  阅读(199)  评论(0)    收藏  举报

导航