new String[] {configLocation},问下这句代码怎么回事,咋不报错了
在spring源码中,当spring容器启动的时候
public ClassPathXmlApplicationContext(String configLocation) throws BeansException {
this(new String[] {configLocation}, true, null);
}
重载构造器.我理解它是干什么用的,可是我在编译器中写new String[]{code}.大括号里面写一个变量怎么是错误的,不理解啊