use varargs for scan method as well
This commit is contained in:
@@ -114,7 +114,7 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
|
|||||||
* Perform a scan within the specified base packages.
|
* Perform a scan within the specified base packages.
|
||||||
* @param basePackages the packages to check for annotated classes
|
* @param basePackages the packages to check for annotated classes
|
||||||
*/
|
*/
|
||||||
public void scan(String[] basePackages) {
|
public void scan(String... basePackages) {
|
||||||
this.scanner.scan(basePackages);
|
this.scanner.scan(basePackages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user