From d697ba930f6390ca52328774b8de2ac329d7aa24 Mon Sep 17 00:00:00 2001 From: seasky <13629799564@163.com> Date: Mon, 11 Nov 2019 14:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIDEA=20debug=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E5=8A=A8=E6=80=81Response=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/github/xiaoymin/knife4j/spring/util/ByteUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/knife4j/knife4j-spring/src/main/java/com/github/xiaoymin/knife4j/spring/util/ByteUtils.java b/knife4j/knife4j-spring/src/main/java/com/github/xiaoymin/knife4j/spring/util/ByteUtils.java index a4e79d33..39bce1cf 100644 --- a/knife4j/knife4j-spring/src/main/java/com/github/xiaoymin/knife4j/spring/util/ByteUtils.java +++ b/knife4j/knife4j-spring/src/main/java/com/github/xiaoymin/knife4j/spring/util/ByteUtils.java @@ -156,7 +156,8 @@ public class ByteUtils { public static Class load(String classPathName){ try{ - return Class.forName(classPathName); + return ClassPool.getDefault().getClassLoader().loadClass(classPathName); +// return Class.forName(classPathName); }catch (Exception e){ } -- Gitee