Spring+hibernate里使用jdbc connection

    技术2024-07-07  77

       Connection conn = SessionFactoryUtils.getDataSource(getSessionFactory()).getConnection();

       String sql = "delete from Table";

       stat.execute(sql);   conn.commit();

    最新回复(0)