URL sour = Thread.currentThread().getContextClassLoader().getResource(".");
System.out.println(sour);
输出:file:/D:/workspace1/Pay-Plateform-ServiceEjb-Test/build/classes/
URL sour = Thread.currentThread().getContextClassLoader().getResource(".");
System.out.println(sour);
输出:file:/D:/workspace1/Pay-Plateform-ServiceEjb-Test/build/classes/