MyBatis | Mapper
So far, SQL has been executed by passing the statement ID and parameters directly to SqlSession.
Separately from this, MyBatis also provides a structure called Mapper. Using Mapper is safer than using SqlSession directly.
In general, it is better to use Mapper. Because mapping files are automatically grouped by Mapper, they are also easier to manage.