调整:实体扫码包优化

This commit is contained in:
ruying408
2024-10-07 15:48:18 +08:00
parent c9f5e44475
commit 865499813f

View File

@@ -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"),