java中加载xml文件方法时间:2023-03-09 21:50:42 this.getclass().getclassloader().getresourceasstream(String file); 可以加载文件,比如xml。