在spirng 中
SessionFactoryUtils.getDataSource(getSessionFactory()).getConnection();
不建议使用 需要自己做事务管理
建议使用 jdbcTemplate
在spirng 中
SessionFactoryUtils.getDataSource(getSessionFactory()).getConnection();
不建议使用 需要自己做事务管理
建议使用 jdbcTemplate