Mybatis programming steps

1. Create SqlSessionFactory

2, created by SqlSession SqlSessionFactory

3, by performing database operations SqlSession

4, call session.commit () to commit the transaction

5, call session.close () to close the session

Guess you like

Origin www.cnblogs.com/noperx/p/11366590.html