-01 towering building a stage, the primary foundation - Chapter 2 single architecture design and preparation work -2-22 based on common Mapper Rest write api interfaces -2

There are red lines below stuMapper, on behalf of it is problematic


This is a problem Mybatis development tools, the use of Ecplise will not have this problem.
IDEA set about





say, here we remove the hook. Then click ok

wavy lines below, there is no such.

Other ways to improve

insert method

The difference between the insert and insertSelective, if a property is empty, it will not cover our metadata.
 

Update method




 

delete

Plus all transaction



Perfect controller layer

Save




update and delete the idempotent. Save does not contain idempotency.

End




 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/12046493.html