According https://blog.csdn.net/abc997995674/article/details/80858925 finishing
1, mybatis entry
In that require registration mybatis-config.xml < by mappers> </ by mappers>;
session.commit (), a non-query operation to work. If you do not want to submit manually, you can use SqlSession session = factory.openSession (true) ;, which can automatically be submitted using the session finished, remember to close ();
Remember mapper.xml defined < Mapper namespace = "com.mybatis.mapper. ** Mapper">, may be replaced with annotations embodiment (not promote)