System.out.println("1:" + Thread.currentThread().getContextClassLoader().getResource(""));
System.out.println("2:" + LibrarySBIGenerelSQLTest.class.getClassLoader().getResource(""));
System.out.println("3:" + ClassLoader.getSystemResource(""));
System.out.println("4:" + LibrarySBIGenerelSQLTest.class.getResource(""));//IdcardClient.class文件所在路径
System.out.println("5:" + LibrarySBIGenerelSQLTest.class.getResource("/")); // Class包所在路径,得到的是URL对象,用url.getPath()获取绝对路径String
System.out.println("6:" + new File("/").getAbsolutePath());//获取盘符的根路径
System.out.println("7:" + System.getProperty("user.dir"));//获取项目的根路径,
System.out.println("8:" + System.getProperty("file.encoding"));//获取文件编码