我正在维护一段代码,但我不确定情况。
resourceStream = StorageEngine.class.getResourceAsStream(resourceFile);
if (resourceStream == null) {
log.info("StorageEngine: didn't find resource file in the classes root ");
resourceStream = this.getClass().getResourceAsStream(resourceFile);
}
StorageEngine.class.getResourceAsStream和this.getClass().getResourceAsStream之间真的有区别吗?
TIA