Browse Source

#FIX 修复枚举常量命名错误

#FIX 修复枚举常量命名错误
pull/4295/head
chengyangwang 2 years ago committed by chengyangwang
parent
commit
347b13beb4
  1. 4
      jeecg-boot-base-core/src/main/java/org/jeecg/common/system/util/ResourceUtil.java

4
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);

Loading…
Cancel
Save