MyBatis with Spring Boot 4: Mappers, Dynamic SQL and Pagination
A first-meeting guide to MyBatis on Spring Boot 4.2: annotation and XML mappers, result maps (JOIN vs N+1), dynamic SQL, #{} vs ${}, PageHelper and its ThreadLocal trap, and @MybatisTest. Every SQL statement quoted was printed by a real run of the companion module.