如何从Spring中获取Connection,来实现多表的管理更新
------解决方案--------------------
- Java code
Connection conn = sessionFactory.getCurrentSession().connection();
------解决方案--------------------
- Java code
DataSource ds = ApplicationContextHolder.getBean("myDataSource");Connection conn = ds.getConnection();