From 16b8aac08fa4f1448db5d286181f4da668b993d6 Mon Sep 17 00:00:00 2001 From: chengyangwang <39980681+wang1223440313@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:44:03 +0800 Subject: [PATCH] =?UTF-8?q?#FIX=20=E4=BF=AE=E5=A4=8D=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=91=BD=E5=90=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #FIX 修复枚举变量命名错误 --- .../main/java/org/jeecg/common/system/util/ResourceUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/common/system/util/ResourceUtil.java b/jeecg-boot-base-core/src/main/java/org/jeecg/common/system/util/ResourceUtil.java index de9f3318..ce97d640 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/common/system/util/ResourceUtil.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/common/system/util/ResourceUtil.java @@ -40,7 +40,7 @@ public class ResourceUtil { * 所有枚举java类 */ - private final static String CLASS_ENMU_PATTERN="/**/*Enum.class"; + private final static String CLASS_ENUM_PATTERN="/**/*Enum.class"; /** * 包路径 org.jeecg @@ -61,7 +61,7 @@ public class ResourceUtil { return enumDictData; } ResourcePatternResolver resourcePatternResolver = new PathMatchingResourcePatternResolver(); - String pattern = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + ClassUtils.convertClassNameToResourcePath(BASE_PACKAGE) + CLASS_ENMU_PATTERN; + String pattern = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + ClassUtils.convertClassNameToResourcePath(BASE_PACKAGE) + CLASS_ENUM_PATTERN; try { Resource[] resources = resourcePatternResolver.getResources(pattern); MetadataReaderFactory readerFactory = new CachingMetadataReaderFactory(resourcePatternResolver);