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);

猜你喜欢

转载自www.cnblogs.com/duanqiao123/p/10889067.html