Properties properties = new Properties();
File file = new File("src/main/resources/generator.xml");
InputStream in = new FileInputStream(file);
properties.loadFromXML(in);
Properties properties = new Properties();
File file = new File("src/main/resources/generator.xml");
InputStream in = new FileInputStream(file);
properties.loadFromXML(in);
转载于:https://www.cnblogs.com/duanqiao123/p/10889067.html