1. System.out.println(Thread.currentThread().getContextClassLoader().getResource("")); 
  2.         System.out.println(Start1.class.getClassLoader().getResource("")); 
  3.         System.out.println(ClassLoader.getSystemResource("")); 
  4. System.out.println(Start1.class.getResource("")); 
  5. System.out.println(Start1.class.getResource("/")); 
  6. //Class文件所在路径 
  7. System.out.println(new File("/").getAbsolutePath()); 
  8. System.out.println(System.getProperty("user.dir"));  
  9. System.out.println("物理路径分割符是: " + System.getProperty("file.separator") );