diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java index a60f30e9da5..0b0a9053c46 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java @@ -114,7 +114,7 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex * Perform a scan within the specified base packages. * @param basePackages the packages to check for annotated classes */ - public void scan(String[] basePackages) { + public void scan(String... basePackages) { this.scanner.scan(basePackages); }