日期:2014-05-19 浏览次数:20656 次
Connection conn = sessionFactory.getCurrentSession().connection(); ------解决方案--------------------
DataSource ds = ApplicationContextHolder.getBean("myDataSource"); Connection conn = ds.getConnection();