当前系统classes路径得到方法在当前系统src目录下建立a.xml写道URL uri Thread.currentThread().getCont
当前系统classes路径得到方法
在当前系统src目录下建立a.xml
写道URL uri = Thread.currentThread().getContextClassLoader().getResource("a.xml");String path = uri.getPath();
System.out.println(path);
? 得到结果:/E:/workspace/css/WebRoot/WEB-INF/classes/a.xml
