/*
* URI:绝对路径
*/
System.out.println("当前类ReadTest.class文件的URI
" + ReadTest.class.getResource(""));
System.out.println("当前classpath的URI
" + ReadTest.class.getResource("/"));
System.out.println("当前classpath的URI
" + ReadTest.class.getClassLoader().getResource(""));
System.out.println("当前classpath的URI
" + Thread.currentThread().getContextClassLoader().getResource(""));
System.out.println("当前classpath的URI
" + ClassLoader.getSystemResource(""));