sessionfactory.getcurrentsession.save返回对象怎么用_百度知道
最佳答案: ApplicationContext ctx = new ClassPathXmlApplicationContext("app.xml"); SessionFactiory sessionFactiory = (SessionFactiory )ctx.getBean("session...更多关于ctx.getBean("SessionFactory")报
spring每次getBean(),获得的是否是同一个实例_macg_新浪博客
2010年7月20日 - SessionFactory tDao1 = (SessionFactory)ctx.getBean("sessionFactory"); SessionFactory tDao2 = (SessionFactory)ctx.getBean("sessionFactory"); ...