properties
-
java怎么从配置文件读取数据
Properties prop = new Properties();FileInputStream input = null;input = new FileInputStream("config.properties");prop.load(input);System.out.println(prop.getProperty("property1"));ex.printStackTrace
Properties prop = new Properties();FileInputStream input = null;input = new FileInputStream("config.properties");prop.load(input);System.out.println(prop.getProperty("property1"));ex.printStackTrace