System.out.println(ClassLoader.getSystemResource(""));
System.out.println(BackupAndRecoveryAction.class.getResource("")); //Test为你自己的类文件
System.out.println(BackupAndRecoveryAction.class.getResource("/")); //Class文件所在路径
System.out.println(new File("/").getAbsolutePath());
System.out.println(System.getProperty("user.dir"));
阅读(2363) | 评论(0) | 转发(0) |