?? demo6test.java
字號:
package test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import demo6.HelloWorldInterface;
public class Demo6Test {
/**
* @param args
*/
public static void main(String[] args) {
ApplicationContext context = new FileSystemXmlApplicationContext("src/applicationContext.xml");
HelloWorldInterface hwi1 = (HelloWorldInterface)context.getBean("h6");
HelloWorldInterface hwi2 = (HelloWorldInterface)context.getBean("h6");
System.out.println(hwi1==hwi2);
HelloWorldInterface hwi3 = (HelloWorldInterface)context.getBean("h62");
HelloWorldInterface hwi4 = (HelloWorldInterface)context.getBean("h62");
System.out.println(hwi3==hwi4);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -