获取类编译之后的文件所在路径

public static String CLASS_PATH =Info.class.getResource("").getPath();

原文地址:https://www.cnblogs.com/yanjunwu/p/3510777.html