org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.3 是一个Maven依赖项,用于在Spring Boot项目中集成MyBatis的测试功能。这个依赖项包含了MyBatis和Spring Boot集成所需的测试库和工具,以便于开发者编写和运行数据库相关的单元测试。 2. 阐述mybatis-spring-boot-starter-test的作用 mybatis-spring-...
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...