isSingleton(String name)
引數說明:public static void main(String[] args){ ApplicationContext context = new ClassPathXmlApplicationContext( "appContext.xml"); //載入appContext.xml檔案 boolean singleton = context.isSingleton("time"); System.out.println("名稱為time的JavaBean是否設定為singleton模式:"+singleton); }