`
liuxingyu3000
  • 浏览: 55953 次
  • 性别: Icon_minigender_1
  • 来自: 大连
最近访客 更多访客>>
社区版块
存档分类
最新评论

读取属性文件

    博客分类:
  • JAVA
 
阅读更多
private static void readProperties() throws IOException {  
        Properties props = new Properties();  
        InputStream inStream = Spike.class.getResourceAsStream("Test.properties");  
        props.load(inStream);  
        Enumeration enums = props.propertyNames();  
        while (enums.hasMoreElements()) {  
            String key = (String) enums.nextElement();  
             
        }
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics