Use MyBatis only three steps; what is the thing

Related jar package 1. Import:

       is that MyBatis jar package, myBatis auxiliary jar package

2. Write a profile

       The main configuration file: mybatis.xml

                            XXXMapper.xml (XXX is the table table name)

3. A frame according to claim development data access and data access sub-sub-interface implementation class

 

  • What is the thing?
  • One thing has multiple steps, all steps as a whole, or the whole success or failure of the whole.

 

  • Example: Transfer is a thing

X to Y transfer 1k, is divided into two: ① From subtracted from X to Y inside the account 1k② accounts inside with 1k. Two steps must be simultaneous failure or success.

Published 30 original articles · won praise 0 · Views 2237

Guess you like

Origin blog.csdn.net/Wang_Mole/article/details/104595601