import org.springframework.context.ApplicationContext;     
import org.springframework.context.support.ClassPathXmlApplicationContext;     
public class AnnoIoCTest {     
    
    public static void main(String[] args) {     
        String[] locations = {"beans.xml"};     
        ApplicationContext ctx =      
            new ClassPathXmlApplicationContext(locations);     
        Boss boss = (Boss) ctx.getBean("boss");     
        System.out.println(boss);     
    }     
}     
     这里的locations变量为什么是String[]类型的,而不是String locations= "beans.xml"