How does mybatis initialize mapper

Original link: https://nicksxs.me/2022/12/04/mybatis%E6%98%AF%E5%A6%82%E4%BD%95%E5%88%9D%E5%A7%8B%E5 %8C%96mapper%E7%9A%84/

The previous article talked about the initial use of mybatis. If I saw this introductory document for the first time, I would be more confused about configuring mapper. How can I execute sql through selectOne and statement id? Then the first The question is how the mapper is parsed, where it exists, and how it is taken out

This article is transferred from: https://nicksxs.me/2022/12/04/mybatis%E6%98%AF%E5%A6%82%E4%BD%95%E5%88%9D%E5%A7%8B%E5 %8C%96mapper%E7%9A%84/
This site is only for collection, and the copyright belongs to the original author.