InputStream is = this.getClass().getResourceAsStream(fileName); //包路径下获取资源
InputStream is = this.getClass().getResourceAsStream("/" + fileName); // classpath下获取资源,包路径的根目录就是classpath路径
InputStream is = this.getClass().getClassLoader().getResourceAsStream(fileName); //classpath下获取资源