From 865499813fd71692750229494c42e623b129a8c9 Mon Sep 17 00:00:00 2001 From: ruying408 <1877972603@qq.com> Date: Mon, 7 Oct 2024 15:48:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4:=E5=AE=9E=E4=BD=93=E6=89=AB?= =?UTF-8?q?=E7=A0=81=E5=8C=85=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/cool/core/util/EntityUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cool/core/util/EntityUtils.java b/src/main/java/com/cool/core/util/EntityUtils.java index 6764611..b564a0c 100644 --- a/src/main/java/com/cool/core/util/EntityUtils.java +++ b/src/main/java/com/cool/core/util/EntityUtils.java @@ -28,7 +28,7 @@ public class EntityUtils { PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); Resource[] resources = null; try { - resources = resolver.getResources("classpath*:com/cool/**/entity/*.class"); + resources = resolver.getResources("classpath*:com/cool/**/entity/**/*Entity.class"); for (Resource r : resources) { String path = r.getURL().getPath(); String className = path.substring(path.indexOf("com/cool"),