调整:实体扫码包优化
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user