java Main方法 获取 maven 的resource 下的xml文件

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