use mybatis-spring-boot-start-test can process the unit test for mybatis mappers very normal. when i test for controllers, if i use @AutoConfigureMybatis annotation, the test can pass,but it can not get the right datas from DB. the mapper's query result is null. i think @AutoConfigure...