参考 : https://blog.youkuaiyun.com/xu511739113/article/details/52440982
ClassLoader classLoader = TestDom.class.getClassLoader();
URL resource = classLoader.getResource("test.xml");
String path = resource.getPath();
System.out.println(path);