|
|
@ -141,10 +141,7 @@ public abstract class AutoConfigurationPackages {
|
|
|
|
PackageImports(AnnotationMetadata metadata) {
|
|
|
|
PackageImports(AnnotationMetadata metadata) {
|
|
|
|
AnnotationAttributes attributes = AnnotationAttributes
|
|
|
|
AnnotationAttributes attributes = AnnotationAttributes
|
|
|
|
.fromMap(metadata.getAnnotationAttributes(AutoConfigurationPackage.class.getName(), false));
|
|
|
|
.fromMap(metadata.getAnnotationAttributes(AutoConfigurationPackage.class.getName(), false));
|
|
|
|
List<String> packageNames = new ArrayList<>();
|
|
|
|
List<String> packageNames = new ArrayList<>(Arrays.asList(attributes.getStringArray("basePackages")));
|
|
|
|
for (String basePackage : attributes.getStringArray("basePackages")) {
|
|
|
|
|
|
|
|
packageNames.add(basePackage);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
for (Class<?> basePackageClass : attributes.getClassArray("basePackageClasses")) {
|
|
|
|
for (Class<?> basePackageClass : attributes.getClassArray("basePackageClasses")) {
|
|
|
|
packageNames.add(basePackageClass.getPackage().getName());
|
|
|
|
packageNames.add(basePackageClass.getPackage().getName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|