public static void main(String[] args) throws IOException {
Properties properties=new Properties();
properties.load(new FileInputStream("F:\\test.properties"));
System.out.println(properties.getProperty("name"));
System.out.println(properties.getProperty("age"));
}