spring boot application.yaml
mybatis:
config-location : classpath:mapper/mybatis-config.xml
mapper-locations : classpath*:mapper/*Mapper.xml,classpath*:mapper/base/*Mapper.xml
mybatis-config.xml
<!-- print sql statement -->
<setting name="logImpl" value="STDOUT_LOGGING"/>
mybatis may mistaken repository interfaces as mapper interfaces, if the base scan package is the project root package. unify mappers into the same mapper package of a multi-module project and scan the mapper package instead
@MapperScan(basePackages = {"com.xxx.infrastructure.domain"})