From 3190cdac13dfe22c5362c29f532b7fad7149593c Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Fri, 25 Feb 2022 09:15:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=80=E4=B8=8B=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/util/TestFileUtil.java | 1 + 1 file changed, 1 insertion(+) 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); }