String path = 类名.class.getClassLoder().getResource(配置文件名).getPath();
String Path = 类名.class.getResource(配置文件名).getPath()