摘要:
spring 缺省:1.spring用DefaultListableBeanFactory.preInstantiateSingletons()建立bean实例2.缺省采用单例模式在最近的项目中,有个地方我们不得不实用getBean的方法,自己从Spring context中获取bean进行数据库操... 阅读全文
posted @ 2015-03-20 15:36
a757956132
阅读(1493)
评论(1)
推荐(0)
摘要:
// ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml","spring-xxxxx.xml"}); // BeanFacto... 阅读全文
posted @ 2015-03-20 15:33
a757956132
阅读(338)
评论(0)
推荐(0)