mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
use varargs for scan method as well
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user