diff --git a/src/main/java/com/xkrs/util/TestFileUtil.java b/src/main/java/com/xkrs/util/TestFileUtil.java index f564dc8..eb6df51 100644 --- a/src/main/java/com/xkrs/util/TestFileUtil.java +++ b/src/main/java/com/xkrs/util/TestFileUtil.java @@ -8,6 +8,7 @@ import java.io.InputStream; * @Date: 2022/1/17 9:29 */ public class TestFileUtil { + public static InputStream getResourcesFileInputStream(String fileName) { return Thread.currentThread().getContextClassLoader().getResourceAsStream("" + fileName); }