µ±Ç°ÏµÍ³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